Class: Chef::Resource::AwsEipAddress
- Inherits:
-
Provisioning::AWSDriver::AWSResourceWithEntry
- Object
- LWRPBase
- Provisioning::AWSDriver::SuperLWRP
- Provisioning::AWSDriver::AWSResource
- Provisioning::AWSDriver::AWSResourceWithEntry
- Chef::Resource::AwsEipAddress
- Defined in:
- lib/chef/resource/aws_eip_address.rb
Constant Summary
Constants inherited from Provisioning::AWSDriver::AWSResource
Provisioning::AWSDriver::AWSResource::NOT_PASSED
Instance Method Summary collapse
Methods inherited from Provisioning::AWSDriver::AWSResourceWithEntry
#delete_managed_entry, #get_id_from_managed_entry, #save_managed_entry, #to_s
Methods inherited from Provisioning::AWSDriver::AWSResource
#action=, #aws_object_id, get_aws_object, get_aws_object_id, #initialize, lookup_options
Methods inherited from Provisioning::AWSDriver::SuperLWRP
Constructor Details
This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource
Instance Method Details
#action(*args) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/chef/resource/aws_eip_address.rb', line 43 def action(*args) # Backcompat for associate and disassociate if args == [ :associate ] super(:create) elsif args == [ :disassociate ] machine false super(:create) else super end end |
#aws_object ⇒ Object
37 38 39 40 41 |
# File 'lib/chef/resource/aws_eip_address.rb', line 37 def aws_object driver, public_ip = get_driver_and_id result = driver.ec2.elastic_ips[public_ip] if public_ip result && result.exists? ? result : nil end |