Class: Elbas::AWSResource
- Inherits:
-
Object
- Object
- Elbas::AWSResource
- Includes:
- Capistrano::DSL, Elbas::AWS::AutoScaling, Elbas::AWS::EC2, Logger, Retryable
- Defined in:
- lib/elbas/aws_resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#aws_counterpart ⇒ Object
readonly
Returns the value of attribute aws_counterpart.
Instance Method Summary collapse
Methods included from Logger
Methods included from Retryable
Methods included from Elbas::AWS::EC2
Methods included from Elbas::AWS::Credentials
Methods included from Elbas::AWS::AutoScaling
#autoscale_group, #autoscale_group_name, #autoscaling
Instance Attribute Details
#aws_counterpart ⇒ Object (readonly)
Returns the value of attribute aws_counterpart.
9 10 11 |
# File 'lib/elbas/aws_resource.rb', line 9 def aws_counterpart @aws_counterpart end |
Instance Method Details
#cleanup(&block) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/elbas/aws_resource.rb', line 11 def cleanup(&block) items = trash || [] yield destroy items self end |