From df7ddf5c0e349686f4f6bb4343309a613dc4942f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 6 May 2012 21:03:30 +0000 Subject: [PATCH] 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 --- lib/tasks/redmine.rake | 8 ++++---- 1 file 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) -- 2.39.5