Exception: Ridley::Errors::MissingNameAttribute
- Inherits:
-
RidleyError
- Object
- StandardError
- RidleyError
- Ridley::Errors::MissingNameAttribute
- Defined in:
- lib/ridley/errors.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ MissingNameAttribute
constructor
A new instance of MissingNameAttribute.
- #to_s ⇒ Object (also: #message)
Constructor Details
#initialize(path) ⇒ MissingNameAttribute
Returns a new instance of MissingNameAttribute.
56 57 58 |
# File 'lib/ridley/errors.rb', line 56 def initialize(path) @path = path end |
Instance Method Details
#to_s ⇒ Object Also known as: message
60 61 62 63 64 65 66 |
# File 'lib/ridley/errors.rb', line 60 def to_s out = "The metadata at '#{@path}' does not contain a 'name' " out << "attribute. While Chef does not strictly enforce this " out << "requirement, Ridley cannot continue without a valid metadata " out << "'name' entry." out end |