minimal_pipeline 0.0.19 → 0.0.20
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.
- checksums.yaml +4 -4
- data/lib/minimal_pipeline/cloudformation.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52993f0ef832366e58e6b3eba09cc4e175ebbc7c2b7f18b4a7c7b7f8f707700b
|
|
4
|
+
data.tar.gz: 7a016efa52387427093356bb14ee8f7fcde6e647ad6b9a2893a52ac3dbcfcae1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3fc0c0aeb662dbd25a931331e6b7fd7af6a5e59fa736b1502b4059c3405973502680ce7de89b93086e143a8b1fe9f733e2fb70a441332d8ff60d97824c2b619
|
|
7
|
+
data.tar.gz: bb7d53d62c27667e45fa6919137ff478ea6a09c9c8f3d41b782e78ae0a8b2aa1ac196cd3bff164c79b3156b13a27b23e3631d72254834744cb7c398ebca23279
|
|
@@ -125,5 +125,16 @@ class MinimalPipeline
|
|
|
125
125
|
wait_options)
|
|
126
126
|
end
|
|
127
127
|
end
|
|
128
|
+
|
|
129
|
+
# Checks to see if a stack exists
|
|
130
|
+
#
|
|
131
|
+
# @param stack_name [String] The name of the CloudFormation stack
|
|
132
|
+
# @return [Boolean] true/false depending on whether or not the stack exists
|
|
133
|
+
def stack_exists?(stack_name)
|
|
134
|
+
stacks = @client.describe_stacks(stack_name: stack_name).stacks
|
|
135
|
+
!stacks.empty?
|
|
136
|
+
rescue ::Aws::CloudFormation::Errors::ValidationError
|
|
137
|
+
false
|
|
138
|
+
end
|
|
128
139
|
end
|
|
129
140
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minimal_pipeline
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mayowa Aladeojebi
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-10-
|
|
12
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aws-sdk
|