Commit c6f5b96ba8102738dcb9bf21f00f0fcb8b4fe1d1
1 parent
bed50009
Exists in
master
and in
4 other branches
allow force=yes rake gitlab:setup for capistrano deploy:cold
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
lib/tasks/gitlab/setup.rake
... | ... | @@ -7,10 +7,12 @@ namespace :gitlab do |
7 | 7 | def setup_db |
8 | 8 | warn_user_is_not_gitlab |
9 | 9 | |
10 | - puts "This will create the necessary database tables and seed the database." | |
11 | - puts "You will lose any previous data stored in the database." | |
12 | - ask_to_continue | |
13 | - puts "" | |
10 | + unless ENV['force'] == 'yes' | |
11 | + puts "This will create the necessary database tables and seed the database." | |
12 | + puts "You will lose any previous data stored in the database." | |
13 | + ask_to_continue | |
14 | + puts "" | |
15 | + end | |
14 | 16 | |
15 | 17 | Rake::Task["db:setup"].invoke |
16 | 18 | Rake::Task["db:seed_fu"].invoke | ... | ... |