diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-17 21:26:22 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-17 21:26:22 +0100 |
commit | 65c35466b695b06807c997859ce4ca5b515b6550 (patch) | |
tree | 55ec3bc5aab0bf4fa2b26337a8e2ec672c84da7e /lib/tasks/gitlab/setup.rake | |
parent | b7457f39b48a067fe142be5486895dc08224963f (diff) | |
download | gitlab-ce-65c35466b695b06807c997859ce4ca5b515b6550.tar.gz |
Rename gitlab:app:setup task to gitlab:setup
Diffstat (limited to 'lib/tasks/gitlab/setup.rake')
-rw-r--r-- | lib/tasks/gitlab/setup.rake | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/lib/tasks/gitlab/setup.rake b/lib/tasks/gitlab/setup.rake index ce6d0eb363d..5699e5d6188 100644 --- a/lib/tasks/gitlab/setup.rake +++ b/lib/tasks/gitlab/setup.rake @@ -1,24 +1,22 @@ namespace :gitlab do - namespace :app do - desc "GITLAB | Setup production application" - task :setup => :environment do - setup - end + desc "GITLAB | Setup production application" + task :setup => :environment do + setup + end - def setup - warn_user_is_not_gitlab + def setup + 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 "" + 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 "" - Rake::Task["db:setup"].invoke - Rake::Task["db:seed_fu"].invoke - Rake::Task["gitlab:enable_automerge"].invoke - rescue Gitlab::TaskAbortedByUserError - puts "Quitting...".red - exit 1 - end + Rake::Task["db:setup"].invoke + Rake::Task["db:seed_fu"].invoke + Rake::Task["gitlab:enable_automerge"].invoke + rescue Gitlab::TaskAbortedByUserError + puts "Quitting...".red + exit 1 end end |