Exception: ChefApply::CLI::OptionValidationError

Inherits:
ErrorNoLogs show all
Defined in:
lib/chef_apply/cli/validation.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#decorate, #id, #params, #show_log, #show_stack

Instance Method Summary collapse

Constructor Details

#initialize(id, calling_command, *args) ⇒ OptionValidationError

Returns a new instance of OptionValidationError.



93
94
95
96
97
98
# File 'lib/chef_apply/cli/validation.rb', line 93

def initialize(id, calling_command, *args)
  super(id, *args)
  # TODO - this is getting cumbersome - move them to constructor options hash in base
  @decorate = false
  @command = calling_command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



92
93
94
# File 'lib/chef_apply/cli/validation.rb', line 92

def command
  @command
end