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.



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

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.



89
90
91
# File 'lib/chef_apply/cli/validation.rb', line 89

def command
  @command
end