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.2686.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2685.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2682.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2681.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2671.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2669.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2657.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2652.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2641.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2640.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2624.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2619.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2611.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2606.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2605.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2603.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2597.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2596.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2583.0 lib/bosh/stemcell/stemcell_builder.rb
bosh-stemcell-1.2579.0 lib/bosh/stemcell/stemcell_builder.rb