opendelivery 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/opendelivery/stack.rb +3 -1
  2. metadata +1 -1
@@ -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
- unless stack.exists? raise "Stack: #{stack_name} doesn't exist, therefore it cannot be destroyed"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opendelivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: