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.3189.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.6.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3184.1.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3184.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.5.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3181.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3178.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.4.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.3.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3177.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3173.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.2.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3146.1.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3169.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3167.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3165.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3163.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3160.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3157.0 lib/bosh/stemcell/os_image_builder.rb
bosh-stemcell-1.3156.0 lib/bosh/stemcell/os_image_builder.rb