Class: Stackster::StackDestroyer
- Inherits:
-
Object
- Object
- Stackster::StackDestroyer
- Defined in:
- lib/stackster/stack/stack_destroyer.rb
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(args) ⇒ StackDestroyer
constructor
A new instance of StackDestroyer.
Constructor Details
#initialize(args) ⇒ StackDestroyer
Returns a new instance of StackDestroyer.
4 5 6 7 |
# File 'lib/stackster/stack/stack_destroyer.rb', line 4 def initialize(args) @config = args[:config] @name = args[:name] end |
Instance Method Details
#destroy ⇒ Object
9 10 11 |
# File 'lib/stackster/stack/stack_destroyer.rb', line 9 def destroy cloud_formation.destroy @name end |