summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wyatt <wyatt.mike@gmail.com>2013-02-20 00:14:03 -0330
committerMike Wyatt <wyatt.mike@gmail.com>2013-02-20 00:14:03 -0330
commitc6f5b96ba8102738dcb9bf21f00f0fcb8b4fe1d1 (patch)
tree5ff4046f7e52b59056b05ce78262e0ede027af0e
parentbed500090e3cfe7a9e42e540cc2b8407b4ffcfc5 (diff)
downloadgitlab-ce-c6f5b96ba8102738dcb9bf21f00f0fcb8b4fe1d1.tar.gz
allow force=yes rake gitlab:setup for capistrano deploy:cold
-rw-r--r--lib/tasks/gitlab/setup.rake10
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