/usr/lib/ruby/vendor_ruby/berkshelf/api/remote_cookbook.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 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | module Berkshelf::API
class RemoteCookbook
attr_accessor :name
attr_accessor :version
attr_accessor :location_type
attr_accessor :location_path
attr_accessor :priority
attr_accessor :info
def initialize(name, version, location_type, location_path, priority, info = {})
@name = name
@version = version
@location_type = location_type
@location_path = location_path
@priority = priority
@info = info
end
def hash
"#{name}|#{version}".hash
end
def eql?(other)
self.hash == other.hash
end
end
end
|