Class: Kamal::Lint::Checks::MissingServiceName
- Inherits:
-
Kamal::Lint::Check
- Object
- Kamal::Lint::Check
- Kamal::Lint::Checks::MissingServiceName
- Defined in:
- lib/kamal/lint/checks/missing_service_name.rb
Instance Attribute Summary
Attributes inherited from Kamal::Lint::Check
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
#call ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/kamal/lint/checks/missing_service_name.rb', line 12 def call service = parsed["service"] return [] if service.is_a?(String) && !service.strip.empty? [ finding( message: "`service:` is required; without it Kamal can't name the deployed container", line: 1 ) ] end |