No other restart policy makes sense to don't let it be changed. Fixes: https://github.com/basecamp/kamal/issues/749
13 lines
282 B
Ruby
13 lines
282 B
Ruby
class Kamal::Configuration::Validator::Role < Kamal::Configuration::Validator
|
|
def validate!
|
|
validate_type! config, Array, Hash
|
|
|
|
if config.is_a?(Array)
|
|
validate_servers!(config)
|
|
else
|
|
super
|
|
validate_docker_options!(config["options"])
|
|
end
|
|
end
|
|
end
|