Sha256: b3d4754fcfeb2d354c0c9332383b4f7359d4d9f58ff1d79cb1d5f781e3b5e85b
Contents?: true
Size: 386 Bytes
Versions: 24
Compression:
Stored size: 386 Bytes
Contents
class File class << self # Returns true or false if the given path contains a Chef Cookbook # # @param [#to_s] path # path of directory to reflect on # # @return [Boolean] def cookbook?(path) File.exist?(File.join(path, "metadata.json")) || File.exist?(File.join(path, "metadata.rb")) end alias_method :chef_cookbook?, :cookbook? end end
Version data entries
24 entries across 24 versions & 1 rubygems