Commit 9655350c authored by Riyad Preukschas's avatar Riyad Preukschas

Fix check.rake

parent ece30f53
...@@ -48,7 +48,7 @@ namespace :gitlab do ...@@ -48,7 +48,7 @@ namespace :gitlab do
see_database_guide, see_database_guide,
"http://guides.rubyonrails.org/getting_started.html#configuring-a-database" "http://guides.rubyonrails.org/getting_started.html#configuring-a-database"
) )
check_failed fix_and_rerun
end end
end end
...@@ -65,7 +65,7 @@ namespace :gitlab do ...@@ -65,7 +65,7 @@ namespace :gitlab do
"https://github.com/gitlabhq/gitlabhq/wiki/Migrate-from-SQLite-to-MySQL", "https://github.com/gitlabhq/gitlabhq/wiki/Migrate-from-SQLite-to-MySQL",
see_database_guide see_database_guide
) )
check_failed fix_and_rerun
end end
end end
...@@ -85,7 +85,7 @@ namespace :gitlab do ...@@ -85,7 +85,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "GitLab" see_installation_guide_section "GitLab"
) )
check_failed fix_and_rerun
end end
end end
...@@ -110,7 +110,7 @@ namespace :gitlab do ...@@ -110,7 +110,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "GitLab" see_installation_guide_section "GitLab"
) )
check_failed fix_and_rerun
end end
end end
...@@ -129,7 +129,7 @@ namespace :gitlab do ...@@ -129,7 +129,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Install Init Script" see_installation_guide_section "Install Init Script"
) )
check_failed fix_and_rerun
end end
end end
...@@ -155,7 +155,7 @@ namespace :gitlab do ...@@ -155,7 +155,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Install Init Script" see_installation_guide_section "Install Init Script"
) )
check_failed fix_and_rerun
end end
end end
...@@ -171,7 +171,7 @@ namespace :gitlab do ...@@ -171,7 +171,7 @@ namespace :gitlab do
try_fixing_it( try_fixing_it(
"sudo -u gitlab -H bundle exec rake db:migrate" "sudo -u gitlab -H bundle exec rake db:migrate"
) )
check_failed fix_and_rerun
end end
end end
...@@ -201,7 +201,7 @@ namespace :gitlab do ...@@ -201,7 +201,7 @@ namespace :gitlab do
for_more_information( for_more_information(
"doc/raketasks/maintenance.md " "doc/raketasks/maintenance.md "
) )
check_failed fix_and_rerun
end end
end end
end end
...@@ -222,7 +222,7 @@ namespace :gitlab do ...@@ -222,7 +222,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "GitLab" see_installation_guide_section "GitLab"
) )
check_failed fix_and_rerun
end end
end end
...@@ -242,7 +242,7 @@ namespace :gitlab do ...@@ -242,7 +242,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "GitLab" see_installation_guide_section "GitLab"
) )
check_failed fix_and_rerun
end end
end end
end end
...@@ -290,7 +290,7 @@ namespace :gitlab do ...@@ -290,7 +290,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "GitLab" see_installation_guide_section "GitLab"
) )
check_failed fix_and_rerun
end end
end end
...@@ -308,7 +308,7 @@ namespace :gitlab do ...@@ -308,7 +308,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "System Users" see_installation_guide_section "System Users"
) )
check_failed fix_and_rerun
end end
end end
...@@ -332,7 +332,7 @@ namespace :gitlab do ...@@ -332,7 +332,7 @@ namespace :gitlab do
see_installation_guide_section("Gitolite"), see_installation_guide_section("Gitolite"),
"https://github.com/gitlabhq/gitlabhq/issues/1059" "https://github.com/gitlabhq/gitlabhq/issues/1059"
) )
check_failed fix_and_rerun
end end
end end
...@@ -352,7 +352,7 @@ namespace :gitlab do ...@@ -352,7 +352,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Packages / Dependencies" see_installation_guide_section "Packages / Dependencies"
) )
check_failed fix_and_rerun
end end
end end
...@@ -378,7 +378,7 @@ namespace :gitlab do ...@@ -378,7 +378,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Packages / Dependencies" see_installation_guide_section "Packages / Dependencies"
) )
check_failed fix_and_rerun
end end
end end
end end
...@@ -434,7 +434,7 @@ namespace :gitlab do ...@@ -434,7 +434,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
# assumes #check_can_clone_gitolite_admin has been run before # assumes #check_can_clone_gitolite_admin has been run before
...@@ -466,7 +466,7 @@ namespace :gitlab do ...@@ -466,7 +466,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
ensure ensure
FileUtils.rm_rf("/tmp/gitolite_gitlab_test") FileUtils.rm_rf("/tmp/gitolite_gitlab_test")
end end
...@@ -488,7 +488,7 @@ namespace :gitlab do ...@@ -488,7 +488,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -511,7 +511,7 @@ namespace :gitlab do ...@@ -511,7 +511,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -537,7 +537,7 @@ namespace :gitlab do ...@@ -537,7 +537,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -582,7 +582,7 @@ namespace :gitlab do ...@@ -582,7 +582,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -611,7 +611,7 @@ namespace :gitlab do ...@@ -611,7 +611,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -635,7 +635,7 @@ namespace :gitlab do ...@@ -635,7 +635,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Setup GitLab Hooks" see_installation_guide_section "Setup GitLab Hooks"
) )
check_failed fix_and_rerun
end end
end end
...@@ -666,7 +666,7 @@ namespace :gitlab do ...@@ -666,7 +666,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Setup GitLab Hooks" see_installation_guide_section "Setup GitLab Hooks"
) )
check_failed fix_and_rerun
end end
end end
...@@ -688,7 +688,7 @@ namespace :gitlab do ...@@ -688,7 +688,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -712,7 +712,7 @@ namespace :gitlab do ...@@ -712,7 +712,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -738,7 +738,7 @@ namespace :gitlab do ...@@ -738,7 +738,7 @@ namespace :gitlab do
for_more_information( for_more_information(
see_installation_guide_section "Gitolite" see_installation_guide_section "Gitolite"
) )
check_failed fix_and_rerun
end end
end end
...@@ -772,7 +772,7 @@ namespace :gitlab do ...@@ -772,7 +772,7 @@ namespace :gitlab do
for_more_information( for_more_information(
"doc/raketasks/maintenance.md" "doc/raketasks/maintenance.md"
) )
check_failed fix_and_rerun
end end
end end
end end
...@@ -808,7 +808,7 @@ namespace :gitlab do ...@@ -808,7 +808,7 @@ namespace :gitlab do
for_more_information( for_more_information(
"lib/support/rewrite-hooks.sh" "lib/support/rewrite-hooks.sh"
) )
check_failed fix_and_rerun
next next
end end
...@@ -822,7 +822,7 @@ namespace :gitlab do ...@@ -822,7 +822,7 @@ namespace :gitlab do
for_more_information( for_more_information(
"lib/support/rewrite-hooks.sh" "lib/support/rewrite-hooks.sh"
) )
check_failed fix_and_rerun
end end
end end
end end
...@@ -880,7 +880,7 @@ namespace :gitlab do ...@@ -880,7 +880,7 @@ namespace :gitlab do
see_installation_guide_section("Install Init Script"), see_installation_guide_section("Install Init Script"),
"see log/resque.log for possible errors" "see log/resque.log for possible errors"
) )
check_failed fix_and_rerun
end end
end end
end end
...@@ -889,7 +889,7 @@ namespace :gitlab do ...@@ -889,7 +889,7 @@ namespace :gitlab do
# Helper methods # Helper methods
########################## ##########################
def check_failed def fix_and_rerun
puts " Please #{"fix the error above"} and rerun the checks.".red puts " Please #{"fix the error above"} and rerun the checks.".red
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment