Class: Kamal::Configuration::Validator::Role

Inherits:
Kamal::Configuration::Validator show all
Defined in:
lib/kamal/configuration/validator/role.rb

Instance Attribute Summary

Attributes inherited from Kamal::Configuration::Validator

#config, #context, #example

Instance Method Summary collapse

Methods inherited from Kamal::Configuration::Validator

#initialize

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
# File 'lib/kamal/configuration/validator/role.rb', line 2

def validate!
  validate_type! config, Array, Hash

  if config.is_a?(Array)
    validate_servers! "servers", config
  else
    super
  end
end