Class: Bosh::AwsCloud::LightStemcell

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud/aws/light_stemcell.rb

Instance Method Summary collapse

Constructor Details

#initialize(heavy_stemcell, logger) ⇒ LightStemcell

Returns a new instance of LightStemcell.



3
4
5
6
# File 'lib/cloud/aws/light_stemcell.rb', line 3

def initialize(heavy_stemcell, logger)
  @logger = logger
  @heavy_stemcell = heavy_stemcell
end

Instance Method Details

#deleteObject



8
9
10
# File 'lib/cloud/aws/light_stemcell.rb', line 8

def delete
  @logger.info("NoOP: Deleting light stemcell '#{@heavy_stemcell.id}'")
end

#idObject



12
13
14
# File 'lib/cloud/aws/light_stemcell.rb', line 12

def id
  "#{@heavy_stemcell.id} light"
end

#image_idObject



20
21
22
# File 'lib/cloud/aws/light_stemcell.rb', line 20

def image_id
  @heavy_stemcell.image_id
end

#root_device_nameObject



16
17
18
# File 'lib/cloud/aws/light_stemcell.rb', line 16

def root_device_name
  @heavy_stemcell.root_device_name
end