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