Class: Chef::Resource::AwsEbsVolume

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

Instance Method Summary collapse

Instance Method Details

#aws_objectObject



24
25
26
27
28
# File 'lib/chef/resource/aws_ebs_volume.rb', line 24

def aws_object
  driver, id = get_driver_and_id
  result = driver.ec2.volumes[id] if id
  result && result.exists? && ![:deleted, :deleting].include?(result.status) ? result : nil
end