class File
Public Class Methods
Source
# File lib/berkshelf/core_ext/file.rb, line 9 def cookbook?(path) File.exist?(File.join(path, "metadata.json")) || File.exist?(File.join(path, "metadata.rb")) end
Returns true or false if the given path contains a Chef Cookbook
@param [#to_s] path
path of directory to reflect on
@return [Boolean]
Also aliased as: chef_cookbook?