Exception: Bolt::Node::EnvironmentVarError

Inherits:
BaseError show all
Defined in:
lib/bolt/node/errors.rb

Instance Attribute Summary

Attributes inherited from BaseError

#issue_code

Attributes inherited from Error

#details, #error_code, #issue_code

Instance Method Summary collapse

Methods inherited from Error

#msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task

Constructor Details

#initialize(var, val) ⇒ EnvironmentVarError

Returns a new instance of EnvironmentVarError.



34
35
36
37
# File 'lib/bolt/node/errors.rb', line 34

def initialize(var, val)
  message = "Could not set environment variable '#{var}' to '#{val}'"
  super(message, 'ENVVAR_ERROR')
end

Instance Method Details

#kindObject



39
40
41
# File 'lib/bolt/node/errors.rb', line 39

def kind
  'puppetlabs.tasks/environment-var-error'
end