cirandas.net

ref: master

lib/tasks/enable_plugins.rake


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
namespace :noosfero do
  namespace :plugins do
    desc 'Enable all installed plugins on all environment'
    task :enable_all => :environment do
      Environment.all.each do |env|
        puts "Plugins Activated on #{env.name}" if env.enable_all_plugins
      end
    end
  end
end