gitlab-org--gitlab-foss/lib/tasks/gitlab/check.rake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
2 KiB
Ruby
Raw Normal View History

# frozen_string_literal: true
2012-04-03 18:02:54 -04:00
namespace :gitlab do
desc 'GitLab | Check the configuration of GitLab and its environment'
task check: :gitlab_environment do
SystemCheck::RakeTask::GitlabTask.run!
end
2012-12-13 06:11:41 -05:00
2012-04-03 18:02:54 -04:00
namespace :app do
desc 'GitLab | App | Check the configuration of the GitLab Rails app'
task check: :gitlab_environment do
SystemCheck::RakeTask::AppTask.run!
2013-04-20 08:56:13 -04:00
end
2012-12-10 08:50:55 -05:00
end
2013-02-11 12:16:59 -05:00
namespace :gitlab_shell do
desc 'GitLab | GitLab Shell | Check the configuration of GitLab Shell'
task check: :gitlab_environment do
SystemCheck::RakeTask::GitlabShellTask.run!
end
2012-12-10 08:50:55 -05:00
end
namespace :gitaly do
desc 'GitLab | Gitaly | Check the health of Gitaly'
task check: :gitlab_environment do
SystemCheck::RakeTask::GitalyTask.run!
end
end
2013-01-09 18:08:15 -05:00
namespace :sidekiq do
desc 'GitLab | Sidekiq | Check the configuration of Sidekiq'
task check: :gitlab_environment do
SystemCheck::RakeTask::SidekiqTask.run!
end
2012-12-13 06:11:41 -05:00
end
namespace :incoming_email do
desc 'GitLab | Incoming Email | Check the configuration of Reply by email'
task check: :gitlab_environment do
SystemCheck::RakeTask::IncomingEmailTask.run!
end
end
2013-11-28 09:20:40 -05:00
namespace :ldap do
task :check, [:limit] => :gitlab_environment do |_, args|
ENV['LDAP_CHECK_LIMIT'] = args.limit if args.limit.present?
SystemCheck::RakeTask::LdapTask.run!
end
2013-11-28 09:20:40 -05:00
end
namespace :orphans do
desc 'Gitlab | Orphans | Check for orphaned namespaces and repositories'
task check: :gitlab_environment do
SystemCheck::RakeTask::OrphansTask.run!
end
desc 'GitLab | Orphans | Check for orphaned namespaces in the repositories path'
task check_namespaces: :gitlab_environment do
SystemCheck::RakeTask::Orphans::NamespaceTask.run!
end
desc 'GitLab | Orphans | Check for orphaned repositories in the repositories path'
task check_repositories: :gitlab_environment do
SystemCheck::RakeTask::Orphans::RepositoryTask.run!
end
end
2012-04-03 18:02:54 -04:00
end