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

67 lines
1.8 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
2017-09-10 17:25:29 +05:30
desc 'GitLab | 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
2015-09-11 14:41:01 +05:30
desc "GitLab | 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
desc 'GitLab | Check the health of Gitaly'
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
2015-09-11 14:41:01 +05:30
desc "GitLab | 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
desc "GitLab | 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
desc 'Gitlab | Check for orphaned namespaces and repositories'
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
desc 'GitLab | Check for orphaned namespaces in the repositories path'
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
desc 'GitLab | Check for orphaned repositories in the repositories path'
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