Class: Kamal::Lint::Checks::TraefikLegacyKeys

Inherits:
Kamal::Lint::Check show all
Defined in:
lib/kamal/lint/checks/traefik_legacy_keys.rb

Instance Attribute Summary

Attributes inherited from Kamal::Lint::Check

#context

Instance Method Summary collapse

Methods inherited from Kamal::Lint::Check

applies_to?, id, #initialize, severity, since, title, until_version

Constructor Details

This class inherits a constructor from Kamal::Lint::Check

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
# File 'lib/kamal/lint/checks/traefik_legacy_keys.rb', line 12

def call
  return [] unless parsed.key?("traefik")

  [ finding(
    message: "`traefik:` block is Kamal 1.x legacy and is ignored in Kamal 2+; replace it with a `proxy:` block",
    line: context.line_for([ "traefik" ])
  ) ]
end