Exception: Berkshelf::InvalidConfiguration

Inherits:
BerkshelfError show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

status_code

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_sObject



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