Sha256: 1ebeaddcca49ceb0c0b45cdd6fe12d6fd66fb6382e965ff1e7fb68df53689f3a
Contents?: true
Size: 332 Bytes
Versions: 17
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
17 entries across 17 versions & 1 rubygems