1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/vendor/plugins/typus/lib/tasks/defaults.rake

25 lines
704 B
Ruby

namespace :typus do
desc "Install acts_as_list, acts_as_tree and paperclip."
task :misc do
plugins = [ "git://github.com/thoughtbot/paperclip.git",
"git://github.com/rails/acts_as_list.git",
"git://github.com/rails/acts_as_tree.git" ]
# plugins << "git://github.com/NZKoz/rails_xss.git" if Rails.version.eql?("2.3.6")
system "script/plugin install #{plugins.join(" ")} --force"
end
desc "List current roles."
task :roles => :environment do
Typus::Configuration.roles.each do |role|
puts "\n#{role.first.capitalize} role has access to:"
role.last.each { |key, value| puts "- #{key}: #{value}" }
end
puts "\n"
end
end