Class: Kamal::Lint::Checks::MissingProxyHealthcheck
- Inherits:
-
Kamal::Lint::Check
- Object
- Kamal::Lint::Check
- Kamal::Lint::Checks::MissingProxyHealthcheck
- Defined in:
- lib/kamal/lint/checks/missing_proxy_healthcheck.rb
Instance Attribute Summary
Attributes inherited from Kamal::Lint::Check
Instance Method Summary collapse
Methods inherited from Kamal::Lint::Check
applies_to?, autofixable, id, #initialize, severity, since, title, until_version
Constructor Details
This class inherits a constructor from Kamal::Lint::Check
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/kamal/lint/checks/missing_proxy_healthcheck.rb', line 12 def call proxy = parsed["proxy"] return [] unless proxy.is_a?(Hash) return [] if proxy.key?("healthcheck") [ finding( message: "proxy block has no `healthcheck:` configured; Kamal-proxy can't verify a new release before cutover", line: context.line_for([ "proxy" ]) ) ] end |