summaryrefslogtreecommitdiffstats
path: root/lib/tasks/migrate_plugins.rake
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-04 11:00:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-04 11:00:28 +0000
commit8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70 (patch)
tree40229f29ca2326a8bc9eb0fc64c623e9b1992822 /lib/tasks/migrate_plugins.rake
parenta0de4c15767267ac8053a9d91e5e527a7b18088f (diff)
downloadredmine-8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70.tar.gz
redmine-8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70.zip
set svn:eol-style native lib/tasks/migrate_plugins.rake
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9070 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/migrate_plugins.rake')
-rw-r--r--lib/tasks/migrate_plugins.rake30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/tasks/migrate_plugins.rake b/lib/tasks/migrate_plugins.rake
index 61df9c3f0..0516d8306 100644
--- a/lib/tasks/migrate_plugins.rake
+++ b/lib/tasks/migrate_plugins.rake
@@ -1,15 +1,15 @@
-namespace :db do
- desc 'Migrates installed plugins.'
- task :migrate_plugins => :environment do
- if Rails.respond_to?('plugins')
- Rails.plugins.each do |plugin|
- next unless plugin.respond_to?('migrate')
- puts "Migrating #{plugin.name}..."
- plugin.migrate
- end
- else
- puts "Undefined method plugins for Rails!"
- puts "Make sure engines plugin is installed."
- end
- end
-end
+namespace :db do
+ desc 'Migrates installed plugins.'
+ task :migrate_plugins => :environment do
+ if Rails.respond_to?('plugins')
+ Rails.plugins.each do |plugin|
+ next unless plugin.respond_to?('migrate')
+ puts "Migrating #{plugin.name}..."
+ plugin.migrate
+ end
+ else
+ puts "Undefined method plugins for Rails!"
+ puts "Make sure engines plugin is installed."
+ end
+ end
+end