class Bosh::Stemcell::BuilderOptions
Attributes
bosh_micro_release_tgz_path[R]
definition[R]
environment[R]
image_create_disk_size[R]
os_image_tgz_path[R]
stemcell_version[R]
Public Class Methods
new(dependencies = {})
click to toggle source
# File lib/bosh/stemcell/builder_options.rb, line 9 def initialize(dependencies = {}) @environment = dependencies.fetch(:env) @definition = dependencies.fetch(:definition) @stemcell_version = dependencies.fetch(:version) @image_create_disk_size = dependencies.fetch(:disk_size, infrastructure.default_disk_size) @bosh_micro_release_tgz_path = dependencies.fetch(:release_tarball) @os_image_tgz_path = dependencies.fetch(:os_image_tarball) end
Public Instance Methods
default()
click to toggle source
# File lib/bosh/stemcell/builder_options.rb, line 19 def default { 'stemcell_image_name' => stemcell_image_name, 'stemcell_version' => stemcell_version, 'stemcell_hypervisor' => infrastructure.hypervisor, 'stemcell_infrastructure' => infrastructure.name, 'stemcell_operating_system' => operating_system.name, 'stemcell_operating_system_version' => operating_system.version, 'ruby_bin' => ruby_bin, 'bosh_release_src_dir' => File.join(source_root, 'release/src/bosh'), 'agent_src_dir' => File.join(source_root, 'go/src/github.com/cloudfoundry/bosh-agent'), 'davcli_src_dir' => File.join(source_root, 'go/src/github.com/cloudfoundry/bosh-davcli'), 'image_create_disk_size' => image_create_disk_size, 'os_image_tgz' => os_image_tgz_path, }.merge(bosh_micro_options).merge(environment_variables).merge(ovf_options) end