Class: Bashly::ConfigValidator
- Inherits:
-
Object
- Object
- Bashly::ConfigValidator
- Includes:
- ValidationHelpers
- Defined in:
- lib/bashly/config_validator.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ ConfigValidator
constructor
A new instance of ConfigValidator.
- #validate ⇒ Object
Constructor Details
#initialize(data) ⇒ ConfigValidator
Returns a new instance of ConfigValidator.
7 8 9 |
# File 'lib/bashly/config_validator.rb', line 7 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/bashly/config_validator.rb', line 5 def data @data end |
Instance Method Details
#validate ⇒ Object
11 12 13 |
# File 'lib/bashly/config_validator.rb', line 11 def validate assert_command 'root', data end |