Sha256: 5731d27460f681b2bf164ffe8470f730003c8e081744df1956f1d744b0f440d5

Contents?: true

Size: 831 Bytes

Versions: 19

Compression:

Stored size: 831 Bytes

Contents

require 'bosh/stemcell/infrastructure'
require 'bosh/stemcell/operating_system'
require 'bosh/stemcell/agent'

module Bosh::Stemcell
  class Definition
    attr_reader :infrastructure, :operating_system, :agent

    def self.for(infrastructure_name, operating_system_name, agent_name)
      new(
        Bosh::Stemcell::Infrastructure.for(infrastructure_name),
        Bosh::Stemcell::OperatingSystem.for(operating_system_name),
        Bosh::Stemcell::Agent.for(agent_name)
      )
    end

    def initialize(infrastructure, operating_system, agent)
      @infrastructure = infrastructure
      @operating_system = operating_system
      @agent = agent
    end

    def ==(other)
      infrastructure == other.infrastructure &&
        operating_system == other.operating_system &&
        agent == other.agent
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bosh-stemcell-1.2311.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2291.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2200.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2175.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2168.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2131.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2129.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2124.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2121.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2089.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2086.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2068.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2063.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.2005.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.1975.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.1868.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.1858.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.1840.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.1836.0 lib/bosh/stemcell/definition.rb