aws-int-test-rspec-helper 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-int-test-rspec-helper.rb +12 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 025c856f7f26f9e1d4aae9408f4dc77d7c774452
|
4
|
+
data.tar.gz: 3ef3b2dece939c9e9b9f76dd1d760b6866abf73c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 658aad59e0a496a9781baf1aa7cdd6f8c64467d46adadc8ab52e9e5e27e19dfdc535e8ec9e156dbc46601508b38d387259b35e35385a2a74a1bfb8a691c38698
|
7
|
+
data.tar.gz: 1732d7168cae52dcb13253fe1e5614003eafe18dd340addb16546e62918378d8fdfb4c2c805d17d1da23db31ab7b8b80622324707801e1f1820cfc7feed860ef
|
@@ -12,8 +12,18 @@ module AwsIntTestRspecHelper
|
|
12
12
|
##
|
13
13
|
# Delete the specified Cloudformation stack by name
|
14
14
|
#
|
15
|
-
def cleanup(cloudformation_stack_name)
|
16
|
-
Aws::CloudFormation::
|
15
|
+
def cleanup(cloudformation_stack_name) basicdynamodbfortesting1457610045
|
16
|
+
resource = Aws::CloudFormation::Resource.new
|
17
|
+
stack_to_delete = resource.stack(cloudformation_stack_name)
|
18
|
+
|
19
|
+
stack_to_delete.delete
|
20
|
+
begin
|
21
|
+
stack_to_delete.wait_until(max_attempts:100, delay:15) do |stack|
|
22
|
+
stack.stack_status.match /DELETE_COMPLETE/
|
23
|
+
end
|
24
|
+
rescue
|
25
|
+
#squash any errors - when stack is gone, the waiter might freak
|
26
|
+
end
|
17
27
|
end
|
18
28
|
|
19
29
|
##
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-int-test-rspec-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- someguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|