debian-mirror-gitlab/lib/tasks/gitlab/check.rake

67 lines
1.9 KiB
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
namespace :gitlab do
2017-09-10 17:25:29 +05:30
desc 'GitLab | Check the configuration of GitLab and its environment'
2019-02-15 15:39:39 +05:30
task check: :gitlab_environment do
SystemCheck::RakeTask::GitlabTask.run!
end
2014-09-02 18:07:02 +05:30
namespace :app do
2020-03-09 13:42:32 +05:30
desc 'GitLab | App | Check the configuration of the GitLab Rails app'
2018-03-17 18:26:18 +05:30
task check: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::AppTask.run!
2014-09-02 18:07:02 +05:30
end
end
namespace :gitlab_shell do
2020-03-09 13:42:32 +05:30
desc 'GitLab | GitLab Shell | Check the configuration of GitLab Shell'
2018-03-17 18:26:18 +05:30
task check: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::GitlabShellTask.run!
2014-09-02 18:07:02 +05:30
end
end
2018-12-13 13:39:08 +05:30
namespace :gitaly do
2020-03-09 13:42:32 +05:30
desc 'GitLab | Gitaly | Check the health of Gitaly'
2018-12-13 13:39:08 +05:30
task check: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::GitalyTask.run!
2018-12-13 13:39:08 +05:30
end
end
2014-09-02 18:07:02 +05:30
namespace :sidekiq do
2020-03-09 13:42:32 +05:30
desc 'GitLab | Sidekiq | Check the configuration of Sidekiq'
2018-03-17 18:26:18 +05:30
task check: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::SidekiqTask.run!
2014-09-02 18:07:02 +05:30
end
end
2015-09-25 12:07:36 +05:30
namespace :incoming_email do
2020-03-09 13:42:32 +05:30
desc 'GitLab | Incoming Email | Check the configuration of Reply by email'
2018-03-17 18:26:18 +05:30
task check: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::IncomingEmailTask.run!
2015-09-25 12:07:36 +05:30
end
end
2014-09-02 18:07:02 +05:30
namespace :ldap do
2018-03-17 18:26:18 +05:30
task :check, [:limit] => :gitlab_environment do |_, args|
2019-02-15 15:39:39 +05:30
ENV['LDAP_CHECK_LIMIT'] = args.limit if args.limit.present?
2014-09-02 18:07:02 +05:30
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::LdapTask.run!
2017-08-17 22:00:37 +05:30
end
2015-04-26 12:48:37 +05:30
end
2014-09-02 18:07:02 +05:30
2018-03-17 18:26:18 +05:30
namespace :orphans do
2020-03-09 13:42:32 +05:30
desc 'Gitlab | Orphans | Check for orphaned namespaces and repositories'
2018-03-17 18:26:18 +05:30
task check: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::OrphansTask.run!
2018-03-17 18:26:18 +05:30
end
2020-03-09 13:42:32 +05:30
desc 'GitLab | Orphans | Check for orphaned namespaces in the repositories path'
2018-03-17 18:26:18 +05:30
task check_namespaces: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::Orphans::NamespaceTask.run!
2018-03-17 18:26:18 +05:30
end
2020-03-09 13:42:32 +05:30
desc 'GitLab | Orphans | Check for orphaned repositories in the repositories path'
2018-03-17 18:26:18 +05:30
task check_repositories: :gitlab_environment do
2019-02-15 15:39:39 +05:30
SystemCheck::RakeTask::Orphans::RepositoryTask.run!
2014-09-02 18:07:02 +05:30
end
end
end