Class: Bashly::ConfigValidator

Inherits:
Object
  • Object
show all
Includes:
ValidationHelpers
Defined in:
lib/bashly/config_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (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

#validateObject



11
12
13
# File 'lib/bashly/config_validator.rb', line 11

def validate
  assert_command 'root', data
end