Commit f62669cc77c1e8b28e0628fe2669c8cc601ba4d6
Committed by
Thiago Ribeiro
1 parent
2fa38979
Exists in
master
and in
5 other branches
Fix condidion of plugin name into software tasks
Showing
3 changed files
with
3 additions
and
4 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?("MpogSoftware") or env.plugin_enabled?("SoftwareCommunities") | 5 | + if env.plugin_enabled?("SoftwareCommunitiesPlugin") |
| 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?("MpogSoftware") or env.plugin_enabled?("SoftwareCommunities") | 6 | + if env.plugin_enabled?("SoftwareCommunitiesPlugin") |
| 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,8 +4,7 @@ namespace :software do | @@ -4,8 +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?("SoftwareCommunities") or env.plugin_enabled?("SoftwareCommunitiesPlugin") | ||
| 8 | - | 7 | + if env.plugin_enabled?("SoftwareCommunitiesPlugin") |
| 9 | print "Creating softwares: " | 8 | print "Creating softwares: " |
| 10 | 9 | ||
| 11 | NUMBER_OF_SOFTWARES.times do |i| | 10 | NUMBER_OF_SOFTWARES.times do |i| |