class Bosh::Stemcell::Infrastructure::Base

Attributes

default_disk_size[R]
disk_formats[R]
hypervisor[R]
name[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/bosh/stemcell/infrastructure.rb, line 31
def initialize(options = {})
  @name = options.fetch(:name)
  @supports_light_stemcell = options.fetch(:supports_light_stemcell, false)
  @hypervisor = options.fetch(:hypervisor)
  @default_disk_size = options.fetch(:default_disk_size)
  @disk_formats = options.fetch(:disk_formats)
end

Public Instance Methods

==(other) click to toggle source
# File lib/bosh/stemcell/infrastructure.rb, line 47
def ==(other)
  name == other.name &&
    hypervisor == other.hypervisor &&
    default_disk_size == other.default_disk_size
end
additional_cloud_properties() click to toggle source
# File lib/bosh/stemcell/infrastructure.rb, line 43
def additional_cloud_properties
  {}
end
default_disk_format() click to toggle source
# File lib/bosh/stemcell/infrastructure.rb, line 39
def default_disk_format
  disk_formats.first
end