No other restart policy makes sense to don't let it be changed. Fixes: https://github.com/basecamp/kamal/issues/749
12 lines
295 B
Ruby
12 lines
295 B
Ruby
class Kamal::Configuration::Validator::Accessory < Kamal::Configuration::Validator
|
|
def validate!
|
|
super
|
|
|
|
if (config.keys & [ "host", "hosts", "roles" ]).size != 1
|
|
error "specify one of `host`, `hosts` or `roles`"
|
|
end
|
|
|
|
validate_docker_options!(config["options"])
|
|
end
|
|
end
|