Class: Kamal::Configuration::Validator::Proxy
- Inherits:
-
Kamal::Configuration::Validator
- Object
- Kamal::Configuration::Validator
- Kamal::Configuration::Validator::Proxy
- Defined in:
- lib/kamal/configuration/validator/proxy.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 9 10 11 12 13 14 |
# File 'lib/kamal/configuration/validator/proxy.rb', line 2 def validate! unless config.nil? super if config["host"].blank? && config["hosts"].blank? && config["ssl"] error "Must set a host to enable automatic SSL" end if (config.keys & [ "host", "hosts" ]).size > 1 error "Specify one of 'host' or 'hosts', not both" end end end |