diff options
author | Mike Wyatt <wyatt.mike@gmail.com> | 2013-02-20 07:44:03 +0400 |
---|---|---|
committer | Mike Wyatt <wyatt.mike@gmail.com> | 2013-02-20 07:44:03 +0400 |
commit | c6f5b96ba8102738dcb9bf21f00f0fcb8b4fe1d1 (patch) | |
tree | 5ff4046f7e52b59056b05ce78262e0ede027af0e /lib/tasks/gitlab/setup.rake | |
parent | bed500090e3cfe7a9e42e540cc2b8407b4ffcfc5 (diff) |
allow force=yes rake gitlab:setup for capistrano deploy:cold
Diffstat (limited to 'lib/tasks/gitlab/setup.rake')
-rw-r--r-- | lib/tasks/gitlab/setup.rake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/tasks/gitlab/setup.rake b/lib/tasks/gitlab/setup.rake index 8d4950cf396..5b74daf956e 100644 --- a/lib/tasks/gitlab/setup.rake +++ b/lib/tasks/gitlab/setup.rake @@ -7,10 +7,12 @@ namespace :gitlab do def setup_db warn_user_is_not_gitlab - puts "This will create the necessary database tables and seed the database." - puts "You will lose any previous data stored in the database." - ask_to_continue - puts "" + unless ENV['force'] == 'yes' + puts "This will create the necessary database tables and seed the database." + puts "You will lose any previous data stored in the database." + ask_to_continue + puts "" + end Rake::Task["db:setup"].invoke Rake::Task["db:seed_fu"].invoke |