/usr/lib/ruby/vendor_ruby/berkshelf/api/core_ext/pathname.rb is in berkshelf-api 2.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | class Pathname
# Returns true or false if the path contains a "metadata.json" or a "metadata.rb" file.
#
# @return [Boolean]
def cookbook?
join("metadata.json").exist? || join("metadata.rb").exist?
end
alias_method :chef_cookbook?, :cookbook?
end
|