Skip to content
Snippets Groups Projects
Commit 71266ad2 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Split and renamed check tasks

parent 0236b3d1
No related branches found
No related tags found
No related merge requests found
namespace :gitlab do namespace :gitlab do
desc "GITLAB | Check the configuration of GitLab and its environment"
task check: %w{gitlab:env:check
gitlab:app:check
gitlab:gitolite:check
gitlab:resque:check}
namespace :app do namespace :app do
desc "GITLAB | Check GitLab installation status" desc "GITLAB | Check the configuration of the GitLab Rails app"
task :status => :environment do task check: :environment do
puts "\nStarting diagnostics".yellow
git_base_path = Gitlab.config.git_base_path
   
print "config/database.yml............" print "config/database.yml............"
if File.exists?(Rails.root.join "config", "database.yml") if File.exists?(Rails.root.join "config", "database.yml")
Loading
@@ -20,6 +24,19 @@ namespace :gitlab do
Loading
@@ -20,6 +24,19 @@ namespace :gitlab do
puts "missing".red puts "missing".red
return return
end end
end
end
namespace :env do
desc "GITLAB | Check the configuration of the environment"
task check: :environment do
end
end
namespace :gitolite do
desc "GITLAB | Check the configuration of Gitolite"
task check: :environment do
git_base_path = Gitlab.config.git_base_path
   
print "#{git_base_path}............" print "#{git_base_path}............"
if File.exists?(git_base_path) if File.exists?(git_base_path)
Loading
@@ -106,8 +123,12 @@ namespace :gitlab do
Loading
@@ -106,8 +123,12 @@ namespace :gitlab do
end end
end end
end end
end
end
   
puts "\nFinished".blue namespace :resque do
desc "GITLAB | Check the configuration of Resque"
task check: :environment do
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment