Class: Aeolus::Image::Warehouse::ProviderImage

Inherits:
WarehouseModel show all
Defined in:
lib/aeolus_image/model/warehouse/provider_image.rb

Instance Attribute Summary

Attributes inherited from WarehouseModel

#body

Instance Method Summary collapse

Methods inherited from WarehouseModel

#==, all, #bucket_object, bucket_objects, config, config=, create!, delete, find, first, #id, #initialize, iwhd_url, last, oauth_consumer_key, oauth_consumer_secret, #set_attr, set_warehouse_and_bucket, use_oauth?, where

Constructor Details

This class inherits a constructor from Aeolus::Image::Warehouse::WarehouseModel

Instance Method Details

#delete!Object

Deletes this provider image



30
31
32
# File 'lib/aeolus_image/model/warehouse/provider_image.rb', line 30

def delete!
  ProviderImage.delete(@uuid)
end

#provider_nameObject



25
26
27
# File 'lib/aeolus_image/model/warehouse/provider_image.rb', line 25

def provider_name
  @provider
end

#target_imageObject



21
22
23
# File 'lib/aeolus_image/model/warehouse/provider_image.rb', line 21

def target_image
  TargetImage.find(@target_image) if @target_image
end