Exception: Ridley::Errors::MissingNameAttribute

Inherits:
RidleyError
  • Object
show all
Defined in:
lib/ridley/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingNameAttribute

Returns a new instance of MissingNameAttribute.



55
56
57
# File 'lib/ridley/errors.rb', line 55

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject Also known as: message



59
60
61
62
63
64
65
# File 'lib/ridley/errors.rb', line 59

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