Class: Elbas::AWSResource

Inherits:
Object
  • Object
show all
Includes:
Capistrano::DSL, Elbas::AWS::AutoScaling, Elbas::AWS::EC2, Logger, Retryable
Defined in:
lib/elbas/aws_resource.rb

Direct Known Subclasses

AMI, LaunchConfiguration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logger

#info

Methods included from Retryable

#with_retry

Methods included from Elbas::AWS::EC2

#ec2

Methods included from Elbas::AWS::Credentials

#credentials

Methods included from Elbas::AWS::AutoScaling

#autoscale_group, #autoscale_group_name, #autoscaling

Instance Attribute Details

#aws_counterpartObject (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