Feature #3329 ยป migrate_plugins.rake.diff
| lib/tasks/migrate_plugins.rake | ||
|---|---|---|
|
puts "Make sure engines plugin is installed."
|
||
|
end
|
||
|
end
|
||
|
|
||
|
desc 'Migrates plugin to specific version.'
|
||
|
task :migrate_plugin => :environment do
|
||
|
if Rails.respond_to?('plugins')
|
||
|
p = Rails.plugins['redmine_'+ENV["PLUGIN"]]
|
||
|
p.migrate(ENV["VERSION"] ? ENV["VERSION"].to_i : nil) if p.respond_to?('migrate')
|
||
|
else
|
||
|
puts "Undefined method plugins for Rails!"
|
||
|
puts "Make sure engines plugin is installed."
|
||
|
end
|
||
|
end
|
||
|
end
|
||