##// END OF EJS Templates
Use uppercase NAME and VERSION environment variables for plugin migration tasks (#10838)....
Jean-Philippe Lang -
r9464:df7ddf5c0e34
parent child
Show More
@@ -51,9 +51,9 namespace :redmine do
51 51 namespace :plugins do
52 52 desc 'Migrates installed plugins.'
53 53 task :migrate => :environment do
54 name = ENV['name']
54 name = ENV['NAME']
55 55 version = nil
56 version_string = ENV['version']
56 version_string = ENV['VERSION']
57 57 if version_string
58 58 if version_string =~ /^\d+$/
59 59 version = version_string.to_i
@@ -61,7 +61,7 namespace :redmine do
61 61 abort "The VERSION argument requires a plugin NAME."
62 62 end
63 63 else
64 abort "Invalid version #{version_string} given."
64 abort "Invalid VERSION #{version_string} given."
65 65 end
66 66 end
67 67
@@ -74,7 +74,7 namespace :redmine do
74 74
75 75 desc 'Copies plugins assets into the public directory.'
76 76 task :assets => :environment do
77 name = ENV['name']
77 name = ENV['NAME']
78 78
79 79 begin
80 80 Redmine::Plugin.mirror_assets(name)
General Comments 0
You need to be logged in to leave comments. Login now