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.
194 195 196 |
# File 'lib/berkshelf/errors.rb', line 194 def initialize(errors) @errors = errors end |
Instance Method Details
#to_s ⇒ Object
198 199 200 201 202 203 |
# File 'lib/berkshelf/errors.rb', line 198 def to_s [ 'Invalid configuration:', @errors.map { |key, errors| errors.map { |error| " #{key} #{error}" } }, ].join("\n") end |