Class: Chef::Resource::AwsImage

Inherits:
Provisioning::AWSDriver::AWSResourceWithEntry
  • Object
show all
Defined in:
lib/chef/resource/aws_image.rb

Instance Method Summary collapse

Instance Method Details

#aws_objectObject



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