class Berkshelf::NotACookbook

Public Class Methods

new(path) click to toggle source

@param [String] path

the path to the thing that is not a cookbook
# File lib/berkshelf/errors.rb, line 455
def initialize(path)
  @path = File.expand_path(path) rescue path
end

Public Instance Methods

message()
Alias for: to_s
to_s() click to toggle source
# File lib/berkshelf/errors.rb, line 459
def to_s
  "The resource at '#{@path}' does not appear to be a valid cookbook. " \
  "Does it have a metadata.rb?"
end
Also aliased as: message