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

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

Constructor Details

#initialize(var, val) ⇒ EnvironmentVarError

Returns a new instance of EnvironmentVarError.



45
46
47
48
# File 'lib/bolt/node/errors.rb', line 45

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

Instance Method Details

#kindObject



50
51
52
# File 'lib/bolt/node/errors.rb', line 50

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