Sha256: 6406b6182d38c02bb5a62084d894707bf52a8abda4c54eecf4cef9a17b092e99

Contents?: true

Size: 625 Bytes

Versions: 124

Compression:

Stored size: 625 Bytes

Contents

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

    def build(os_image_path)
      environment.prepare_build
      runner.configure_and_apply(collection.operating_system_stages, ENV['resume_from'])
      archive_handler.compress(environment.chroot_dir, os_image_path)
    end

    private

    attr_reader :environment, :collection, :runner, :archive_handler
  end
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
bosh-stemcell-1.3262.24.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3232.24.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3232.14.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3262.4.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3262.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3232.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3215.4.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3215.3.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3215.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.10.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3213.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3202.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3200.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.9.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3197.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3196.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.8.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3192.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.7.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3191.0 lib/bosh/stemcell/os_image_builder.rb