Commit 012c07e2aed0192403d0def3d87f4c892f3df1ac

Authored by Luciano Prestes
1 parent 14d86d41

Update plugin name in rake tasks

lib/tasks/create_categories.rake
... ... @@ -2,7 +2,7 @@ namespace :software do
2 2 desc "Create software categories"
3 3 task :create_categories => :environment do
4 4 Environment.all.each do |env|
5   - if env.plugin_enabled?("SoftwareCommunitiesPlugin")
  5 + if env.plugin_enabled?("SoftwareCommunitiesPlugin") or env.plugin_enabled?("SoftwareCommunities")
6 6 print 'Creating categories: '
7 7 software = Category.create(:name => _("Software"), :environment => env)
8 8 Category::SOFTWARE_CATEGORIES.each do |category_name|
... ...
lib/tasks/create_licenses.rake
... ... @@ -3,7 +3,7 @@ namespace :software do
3 3  
4 4 task :create_licenses => :environment do
5 5 Environment.all.each do |env|
6   - if env.plugin_enabled?("SoftwareCommunitiesPlugin")
  6 + if env.plugin_enabled?("SoftwareCommunitiesPlugin") or env.plugin_enabled?("SoftwareCommunities")
7 7 list_file = File.open "plugins/software_communities/public/static/licences.txt", "r"
8 8  
9 9 version_or_link = 'version'
... ...
lib/tasks/create_sample_softwares.rake
... ... @@ -4,7 +4,7 @@ namespace :software do
4 4 desc "Create sample softwares"
5 5 task :create_sample_softwares => :environment do
6 6 Environment.all.each do |env|
7   - if env.plugin_enabled?("SoftwareCommunitiesPlugin")
  7 + if env.plugin_enabled?("SoftwareCommunitiesPlugin") or env.plugin_enabled?("SoftwareCommunities")
8 8 print "Creating softwares: "
9 9  
10 10 NUMBER_OF_SOFTWARES.times do |i|
... ...