2021-02-05 07:09:31 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2012-04-03 18:02:54 -04:00
|
|
|
namespace :gitlab do
|
2017-05-25 10:16:25 -04:00
|
|
|
desc 'GitLab | Check the configuration of GitLab and its environment'
|
2018-11-27 19:08:31 -05:00
|
|
|
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
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'GitLab | App | Check the configuration of the GitLab Rails app'
|
2018-01-24 03:12:33 -05:00
|
|
|
task check: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
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
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'GitLab | GitLab Shell | Check the configuration of GitLab Shell'
|
2018-01-24 03:12:33 -05:00
|
|
|
task check: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::GitlabShellTask.run!
|
2014-06-10 04:23:23 -04:00
|
|
|
end
|
2012-12-10 08:50:55 -05:00
|
|
|
end
|
2012-07-26 09:14:34 -04:00
|
|
|
|
2018-10-02 16:11:07 -04:00
|
|
|
namespace :gitaly do
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'GitLab | Gitaly | Check the health of Gitaly'
|
2018-10-02 16:11:07 -04:00
|
|
|
task check: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::GitalyTask.run!
|
2018-10-02 16:11:07 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-01-09 18:08:15 -05:00
|
|
|
namespace :sidekiq do
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'GitLab | Sidekiq | Check the configuration of Sidekiq'
|
2018-01-24 03:12:33 -05:00
|
|
|
task check: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::SidekiqTask.run!
|
2013-09-27 06:57:05 -04:00
|
|
|
end
|
2012-12-13 06:11:41 -05:00
|
|
|
end
|
|
|
|
|
2015-09-21 03:46:47 -04:00
|
|
|
namespace :incoming_email do
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'GitLab | Incoming Email | Check the configuration of Reply by email'
|
2018-01-24 03:12:33 -05:00
|
|
|
task check: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::IncomingEmailTask.run!
|
2015-08-20 17:03:04 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-11-28 09:20:40 -05:00
|
|
|
namespace :ldap do
|
2018-01-24 03:12:33 -05:00
|
|
|
task :check, [:limit] => :gitlab_environment do |_, args|
|
2018-11-27 19:08:31 -05:00
|
|
|
ENV['LDAP_CHECK_LIMIT'] = args.limit if args.limit.present?
|
2016-09-29 15:08:27 -04:00
|
|
|
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::LdapTask.run!
|
2016-09-29 15:08:27 -04:00
|
|
|
end
|
2013-11-28 09:20:40 -05:00
|
|
|
end
|
2015-12-11 18:27:20 -05:00
|
|
|
|
2017-09-05 01:05:23 -04:00
|
|
|
namespace :orphans do
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'Gitlab | Orphans | Check for orphaned namespaces and repositories'
|
2018-01-24 03:12:33 -05:00
|
|
|
task check: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::OrphansTask.run!
|
2017-09-05 01:05:23 -04:00
|
|
|
end
|
|
|
|
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'GitLab | Orphans | Check for orphaned namespaces in the repositories path'
|
2018-01-24 03:12:33 -05:00
|
|
|
task check_namespaces: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::Orphans::NamespaceTask.run!
|
2017-09-05 01:05:23 -04:00
|
|
|
end
|
|
|
|
|
2020-01-23 01:08:32 -05:00
|
|
|
desc 'GitLab | Orphans | Check for orphaned repositories in the repositories path'
|
2018-01-24 03:12:33 -05:00
|
|
|
task check_repositories: :gitlab_environment do
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::RakeTask::Orphans::RepositoryTask.run!
|
2013-03-12 06:53:07 -04:00
|
|
|
end
|
|
|
|
end
|
2012-04-03 18:02:54 -04:00
|
|
|
end
|