Class: Stackster::StackDestroyer

Inherits:
Object
  • Object
show all
Defined in:
lib/stackster/stack/stack_destroyer.rb

Instance Method Summary collapse

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

#destroyObject



9
10
11
# File 'lib/stackster/stack/stack_destroyer.rb', line 9

def destroy
  cloud_formation.destroy @name
end