Method: Stackup::Stack#delete

Defined in:
lib/stackup/stack.rb

#deleteString Also known as: down

Delete the stack.

Returns:

  • (String)

    “DELETE_COMPLETE”

Raises:



147
148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/stackup/stack.rb', line 147

def delete
  begin
    @stack_id = handling_cf_errors do
      cf_stack.stack_id
    end
  rescue NoSuchStack
    return nil
  end
  modify_stack("DELETE_COMPLETE", "stack delete failed") do
    cf_stack.delete
  end
ensure
  @stack_id = nil
end