Sha256: 6fec9deaf31267fd3e2d6b5d600f0aad88e286098da9103ee97bbf4d5f1cc9b1

Contents?: true

Size: 624 Bytes

Versions: 5

Compression:

Stored size: 624 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
berkshelf-api-3.0.0 lib/berkshelf/api/remote_cookbook.rb
berkshelf-api-2.2.0 lib/berkshelf/api/remote_cookbook.rb
berkshelf-api-2.1.3 lib/berkshelf/api/remote_cookbook.rb
berkshelf-api-2.1.2 lib/berkshelf/api/remote_cookbook.rb
berkshelf-api-2.1.1 lib/berkshelf/api/remote_cookbook.rb