Exception: Berkshelf::InvalidConfiguration
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::InvalidConfiguration
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidConfiguration
constructor
A new instance of InvalidConfiguration.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(errors) ⇒ InvalidConfiguration
Returns a new instance of InvalidConfiguration.
125 126 127 |
# File 'lib/berkshelf/errors.rb', line 125 def initialize(errors) @errors = errors end |
Instance Method Details
#to_s ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/berkshelf/errors.rb', line 129 def to_s strings = ["Invalid configuration:"] @errors.each do |key, errors| errors.each do |error| strings << " #{key} #{error}" end end strings.join "\n" end |