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.
181 182 183 |
# File 'lib/berkshelf/errors.rb', line 181 def initialize(errors) @errors = errors end |
Instance Method Details
#to_s ⇒ Object
185 186 187 188 189 190 |
# File 'lib/berkshelf/errors.rb', line 185 def to_s [ 'Invalid configuration:', @errors.map { |key, errors| errors.map { |error| " #{key} #{error}" } }, ].join("\n") end |