Class: Chef::Resource::AwsImage
- Inherits:
-
Provisioning::AWSDriver::AWSResourceWithEntry
- Object
- Provisioning::AWSDriver::AWSResourceWithEntry
- Chef::Resource::AwsImage
- Defined in:
- lib/chef/resource/aws_image.rb
Instance Method Summary collapse
Instance Method Details
#aws_object ⇒ Object
14 15 16 17 18 |
# File 'lib/chef/resource/aws_image.rb', line 14 def aws_object driver, id = get_driver_and_id result = driver.ec2.images[id] if id result && result.exists? ? result : nil end |