Class: Kamal::Configuration::Validator::Accessory
- Inherits:
-
Kamal::Configuration::Validator
- Object
- Kamal::Configuration::Validator
- Kamal::Configuration::Validator::Accessory
- Defined in:
- lib/kamal/configuration/validator/accessory.rb
Instance Attribute Summary
Attributes inherited from Kamal::Configuration::Validator
Instance Method Summary collapse
Methods inherited from Kamal::Configuration::Validator
Constructor Details
This class inherits a constructor from Kamal::Configuration::Validator
Instance Method Details
#validate! ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/kamal/configuration/validator/accessory.rb', line 2 def validate! super if (config.keys & [ "host", "hosts", "roles" ]).size != 1 error "specify one of `host`, `hosts` or `roles`" end end |