Commit 012c07e2aed0192403d0def3d87f4c892f3df1ac
1 parent
14d86d41
Exists in
master
and in
54 other branches
Update plugin name in rake tasks
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
lib/tasks/create_categories.rake
@@ -2,7 +2,7 @@ namespace :software do | @@ -2,7 +2,7 @@ namespace :software do | ||
2 | desc "Create software categories" | 2 | desc "Create software categories" |
3 | task :create_categories => :environment do | 3 | task :create_categories => :environment do |
4 | Environment.all.each do |env| | 4 | Environment.all.each do |env| |
5 | - if env.plugin_enabled?("SoftwareCommunitiesPlugin") | 5 | + if env.plugin_enabled?("SoftwareCommunitiesPlugin") or env.plugin_enabled?("SoftwareCommunities") |
6 | print 'Creating categories: ' | 6 | print 'Creating categories: ' |
7 | software = Category.create(:name => _("Software"), :environment => env) | 7 | software = Category.create(:name => _("Software"), :environment => env) |
8 | Category::SOFTWARE_CATEGORIES.each do |category_name| | 8 | Category::SOFTWARE_CATEGORIES.each do |category_name| |
lib/tasks/create_licenses.rake
@@ -3,7 +3,7 @@ namespace :software do | @@ -3,7 +3,7 @@ namespace :software do | ||
3 | 3 | ||
4 | task :create_licenses => :environment do | 4 | task :create_licenses => :environment do |
5 | Environment.all.each do |env| | 5 | Environment.all.each do |env| |
6 | - if env.plugin_enabled?("SoftwareCommunitiesPlugin") | 6 | + if env.plugin_enabled?("SoftwareCommunitiesPlugin") or env.plugin_enabled?("SoftwareCommunities") |
7 | list_file = File.open "plugins/software_communities/public/static/licences.txt", "r" | 7 | list_file = File.open "plugins/software_communities/public/static/licences.txt", "r" |
8 | 8 | ||
9 | version_or_link = 'version' | 9 | version_or_link = 'version' |
lib/tasks/create_sample_softwares.rake
@@ -4,7 +4,7 @@ namespace :software do | @@ -4,7 +4,7 @@ namespace :software do | ||
4 | desc "Create sample softwares" | 4 | desc "Create sample softwares" |
5 | task :create_sample_softwares => :environment do | 5 | task :create_sample_softwares => :environment do |
6 | Environment.all.each do |env| | 6 | Environment.all.each do |env| |
7 | - if env.plugin_enabled?("SoftwareCommunitiesPlugin") | 7 | + if env.plugin_enabled?("SoftwareCommunitiesPlugin") or env.plugin_enabled?("SoftwareCommunities") |
8 | print "Creating softwares: " | 8 | print "Creating softwares: " |
9 | 9 | ||
10 | NUMBER_OF_SOFTWARES.times do |i| | 10 | NUMBER_OF_SOFTWARES.times do |i| |