Sha256: c0355d28eab6feefabb022b79e0ce9bf2d65a479e1f851da3b6018dc468c6c19

Contents?: true

Size: 683 Bytes

Versions: 94

Compression:

Stored size: 683 Bytes

Contents

module Bosh::Stemcell
  class StemcellBuilder
    def initialize(dependencies = {})
      @gem_components = dependencies.fetch(:gem_components)
      @environment = dependencies.fetch(:environment)
      @collection = dependencies.fetch(:collection)
      @runner = dependencies.fetch(:runner)
    end

    def build
      gem_components.build_release_gems
      environment.prepare_build
      stemcell_stages = collection.extract_operating_system_stages +
        collection.agent_stages +
        collection.infrastructure_stages
      runner.configure_and_apply(stemcell_stages)
    end

    private

    attr_reader :gem_components, :environment, :collection, :runner
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
bosh-stemcell-1.2398.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2384.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2375.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2372.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2366.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2361.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2355.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2354.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2347.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2341.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2334.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2311.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2291.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2200.0 lib/bosh/stemcell/stemcell_builder.rb