Exception: MotherBrain::InvalidCookbookMetadata

Inherits:
PluginLoadError show all
Defined in:
lib/mb/errors.rb

Constant Summary

Constants inherited from MBError

MBError::DEFAULT_EXIT_CODE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from MBError

#error_code, error_code, exit_code, #exit_code, #message, #to_hash, #to_json, #to_s

Constructor Details

#initialize(errors) ⇒ InvalidCookbookMetadata

Returns a new instance of InvalidCookbookMetadata.



225
226
227
# File 'lib/mb/errors.rb', line 225

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



223
224
225
# File 'lib/mb/errors.rb', line 223

def errors
  @errors
end