class CookbookOmnifetch::NotACookbook
NOTE: This is the only error class copied from berks that is also used elsewhere in berks, in ‘berkshelf/init_generator’
Public Class Methods
new(path)
click to toggle source
@param [String] path
the path to the thing that is not a cookbook
Calls superclass method
# File lib/cookbook-omnifetch/exceptions.rb, line 51 def initialize(path) @path = File.expand_path(path) rescue path super(to_s) end
Public Instance Methods
to_s()
click to toggle source
# File lib/cookbook-omnifetch/exceptions.rb, line 56 def to_s "The resource at '#{@path}' does not appear to be a valid cookbook. " \ "Does it have a metadata.rb?" end