Class: Kamal::Configuration::Validator
- Inherits:
-
Object
- Object
- Kamal::Configuration::Validator
- Defined in:
- lib/kamal/configuration/validator.rb
Direct Known Subclasses
Accessory, Alias, Builder, Configuration, Env, Proxy, Registry, Role, Servers
Defined Under Namespace
Classes: Accessory, Alias, Builder, Configuration, Env, Proxy, Registry, Role, Servers
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#example ⇒ Object
readonly
Returns the value of attribute example.
Instance Method Summary collapse
-
#initialize(config, example:, context:) ⇒ Validator
constructor
A new instance of Validator.
- #validate! ⇒ Object
Constructor Details
#initialize(config, example:, context:) ⇒ Validator
Returns a new instance of Validator.
4 5 6 7 8 |
# File 'lib/kamal/configuration/validator.rb', line 4 def initialize(config, example:, context:) @config = config @example = example @context = context end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
2 3 4 |
# File 'lib/kamal/configuration/validator.rb', line 2 def config @config end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
2 3 4 |
# File 'lib/kamal/configuration/validator.rb', line 2 def context @context end |
#example ⇒ Object (readonly)
Returns the value of attribute example.
2 3 4 |
# File 'lib/kamal/configuration/validator.rb', line 2 def example @example end |
Instance Method Details
#validate! ⇒ Object
10 11 12 |
# File 'lib/kamal/configuration/validator.rb', line 10 def validate! validate_against_example! config, example end |