Feature #3329 ยป migrate_plugins.rake.diff
lib/tasks/migrate_plugins.rake | ||
---|---|---|
12 | 12 |
puts "Make sure engines plugin is installed." |
13 | 13 |
end |
14 | 14 |
end |
15 |
|
|
16 |
desc 'Migrates plugin to specific version.' |
|
17 |
task :migrate_plugin => :environment do |
|
18 |
if Rails.respond_to?('plugins') |
|
19 |
p = Rails.plugins['redmine_'+ENV["PLUGIN"]] |
|
20 |
p.migrate(ENV["VERSION"] ? ENV["VERSION"].to_i : nil) if p.respond_to?('migrate') |
|
21 |
else |
|
22 |
puts "Undefined method plugins for Rails!" |
|
23 |
puts "Make sure engines plugin is installed." |
|
24 |
end |
|
25 |
end |
|
15 | 26 |
end |