Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab_cable_config_exists_check.rb « app « system_check « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c13dade1b4c0319e87de987d25b08f3a7938506c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

module SystemCheck
  module App
    class GitlabCableConfigExistsCheck < SystemCheck::BaseCheck
      set_name 'Cable config exists?'

      def check?
        cable_config_file = Rails.root.join('config/cable.yml')

        File.exist?(cable_config_file)
      end

      def show_error
        try_fixing_it(
          'Copy config/cable.yml.example to config/cable.yml',
          'Update config/cable.yml to match your setup'
        )
        for_more_information(
          see_installation_guide_section('GitLab')
        )
        fix_and_rerun
      end
    end
  end
end