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
|