Sha256: 2728b8cdfb9148d2da46e53470731e70c0294d0099a6b59c480b3179157d233a

Contents?: true

Size: 673 Bytes

Versions: 2

Compression:

Stored size: 673 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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bosh-stemcell-1.1798.0 lib/bosh/stemcell/definition.rb
bosh-stemcell-1.1782.0 lib/bosh/stemcell/definition.rb