diff options
Diffstat (limited to 'lib/system_check/app/gitlab_resque_config_exists_check.rb')
-rw-r--r-- | lib/system_check/app/gitlab_resque_config_exists_check.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/system_check/app/gitlab_resque_config_exists_check.rb b/lib/system_check/app/gitlab_resque_config_exists_check.rb new file mode 100644 index 00000000000..fb835553737 --- /dev/null +++ b/lib/system_check/app/gitlab_resque_config_exists_check.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +module SystemCheck + module App + class GitlabResqueConfigExistsCheck < SystemCheck::BaseCheck + set_name 'Resque config exists?' + + def check? + resque_config_file = Rails.root.join('config/resque.yml') + + File.exist?(resque_config_file) + end + + def show_error + try_fixing_it( + 'Copy config/resque.yml.example to config/resque.yml', + 'Update config/resque.yml to match your setup' + ) + for_more_information( + see_installation_guide_section('GitLab') + ) + fix_and_rerun + end + end + end +end |