class Pathname
Public Instance Methods
cookbook?()
click to toggle source
Returns true or false if the path contains a “metadata.json” or a “metadata.rb” file.
@return [Boolean]
# File lib/berkshelf/api/core_ext/pathname.rb, line 5 def cookbook? join("metadata.json").exist? || join("metadata.rb").exist? end
Also aliased as: chef_cookbook?