Sha256: 0db4aea6643f261a096e946c3f1d77b9fafe4f1be5deb6cad295aeedc0c9fc59
Contents?: true
Size: 413 Bytes
Versions: 15
Compression:
Stored size: 413 Bytes
Contents
class Kamal::Configuration::Validator::Proxy < Kamal::Configuration::Validator 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 end
Version data entries
15 entries across 15 versions & 2 rubygems