opendelivery 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/opendelivery/stack.rb +3 -1
- metadata +1 -1
data/lib/opendelivery/stack.rb
CHANGED
@@ -61,13 +61,15 @@ module OpenDelivery
|
|
61
61
|
|
62
62
|
def destroy(stack_name, domain=nil, wait=false)
|
63
63
|
stack = @cfn.stacks[stack_name]
|
64
|
-
|
64
|
+
if stack.exists?
|
65
65
|
stack.resume_scaling_activities(stack_name)
|
66
66
|
stack.delete
|
67
67
|
while wait and stack.exists?
|
68
68
|
sleep 20
|
69
69
|
end
|
70
70
|
@domain.destroy_item(domain, stack_name)
|
71
|
+
else
|
72
|
+
raise "Stack: #{stack_name} doesn't exist, therefore it cannot be destroyed"
|
71
73
|
end
|
72
74
|
end
|
73
75
|
|