Class: Roark::Aws::CloudFormation::DestroyStack
- Inherits:
-
Object
- Object
- Roark::Aws::CloudFormation::DestroyStack
- Defined in:
- lib/roark/aws/cloud_formation/destroy_stack.rb
Instance Method Summary collapse
- #destroy(name) ⇒ Object
-
#initialize(connection) ⇒ DestroyStack
constructor
A new instance of DestroyStack.
Constructor Details
#initialize(connection) ⇒ DestroyStack
Returns a new instance of DestroyStack.
6 7 8 |
# File 'lib/roark/aws/cloud_formation/destroy_stack.rb', line 6 def initialize(connection) @connection = connection end |
Instance Method Details
#destroy(name) ⇒ Object
10 11 12 |
# File 'lib/roark/aws/cloud_formation/destroy_stack.rb', line 10 def destroy(name) @connection.cf.stacks[name].delete end |