diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-06 21:03:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-06 21:03:30 +0000 |
commit | df7ddf5c0e349686f4f6bb4343309a613dc4942f (patch) | |
tree | 9d41778dbf6a7e981ca03fb449c2948e61bbe6c7 /lib/tasks/redmine.rake | |
parent | 31d2d1284ad3b9c6085008a9b6a416f3f68d1bc6 (diff) | |
download | redmine-df7ddf5c0e349686f4f6bb4343309a613dc4942f.tar.gz redmine-df7ddf5c0e349686f4f6bb4343309a613dc4942f.zip |
Use uppercase NAME and VERSION environment variables for plugin migration tasks (#10838).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9647 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/redmine.rake')
-rw-r--r-- | lib/tasks/redmine.rake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake index 7c1a36248..3d8fea591 100644 --- a/lib/tasks/redmine.rake +++ b/lib/tasks/redmine.rake @@ -51,9 +51,9 @@ namespace :redmine do namespace :plugins do desc 'Migrates installed plugins.' task :migrate => :environment do - name = ENV['name'] + name = ENV['NAME'] version = nil - version_string = ENV['version'] + version_string = ENV['VERSION'] if version_string if version_string =~ /^\d+$/ version = version_string.to_i @@ -61,7 +61,7 @@ namespace :redmine do abort "The VERSION argument requires a plugin NAME." end else - abort "Invalid version #{version_string} given." + abort "Invalid VERSION #{version_string} given." end end @@ -74,7 +74,7 @@ namespace :redmine do desc 'Copies plugins assets into the public directory.' task :assets => :environment do - name = ENV['name'] + name = ENV['NAME'] begin Redmine::Plugin.mirror_assets(name) |