Class: Bosh::AwsCloud::LightStemcell
- Inherits:
-
Object
- Object
- Bosh::AwsCloud::LightStemcell
- Defined in:
- lib/cloud/aws/light_stemcell.rb
Instance Method Summary collapse
- #delete ⇒ Object
- #id ⇒ Object
- #image_id ⇒ Object
-
#initialize(heavy_stemcell, logger) ⇒ LightStemcell
constructor
A new instance of LightStemcell.
- #root_device_name ⇒ Object
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
#delete ⇒ Object
8 9 10 |
# File 'lib/cloud/aws/light_stemcell.rb', line 8 def delete @logger.info("NoOP: Deleting light stemcell '#{@heavy_stemcell.id}'") end |
#id ⇒ Object
12 13 14 |
# File 'lib/cloud/aws/light_stemcell.rb', line 12 def id "#{@heavy_stemcell.id} light" end |
#image_id ⇒ Object
20 21 22 |
# File 'lib/cloud/aws/light_stemcell.rb', line 20 def image_id @heavy_stemcell.image_id end |
#root_device_name ⇒ Object
16 17 18 |
# File 'lib/cloud/aws/light_stemcell.rb', line 16 def root_device_name @heavy_stemcell.root_device_name end |