class Berkshelf::ConfigNotFound

Raised when a cookbook or its recipes contain a space or invalid character in the path.

Public Class Methods

new(type, path) click to toggle source

@param [String] type

the type of config that was not found (Berkshelf, Chef, etc)

@param [#to_s] path

the path to the specified Chef config that did not exist
# File lib/berkshelf/errors.rb, line 392
def initialize(type, path)
  @type = type.to_s
  @path = path
end

Public Instance Methods

message()
Alias for: to_s
to_s() click to toggle source
# File lib/berkshelf/errors.rb, line 397
def to_s
  "No #{@type.capitalize} config file found at: '#{@path}'!"
end
Also aliased as: message