kumo_keisei 3.0.3.pre.alpha3 → 3.0.3.pre.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/kumo_keisei/stack.rb +3 -2
- data/spec/lib/kumo_keisei/stack_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc70e43f439a964e7a404ebac636262f653cb450
|
4
|
+
data.tar.gz: 8384a7510833990f8db26cfe6bb6f85c62c0ee83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a0d01b50ada8b8058e638fc2abc6a42d727393e4e3081cb1cfede5ae32fb4411df3e87d6278826f9955bb17a836c9c1ca883fef3e3db33cfea1d74b72c5bc7f
|
7
|
+
data.tar.gz: 0d512db6f093c58074c220a7519dab0efd0bbbc7f869c0e7d16221212fc81c9a2ddb7c299d0b29c5a3eb1121bae17b0867c378a204983ec5d41107403ffe87ec
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.3-
|
1
|
+
3.0.3-alpha4
|
data/lib/kumo_keisei/stack.rb
CHANGED
@@ -27,9 +27,10 @@ module KumoKeisei
|
|
27
27
|
self.new(app_name, environment_name).exists?
|
28
28
|
end
|
29
29
|
|
30
|
-
def initialize(app_name, environment_name,
|
31
|
-
|
30
|
+
def initialize(app_name, environment_name, options = { confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90 })
|
31
|
+
type = options.fetch(:type, 'nodes')
|
32
32
|
@env_name = environment_name
|
33
|
+
@app_name = app_name
|
33
34
|
@stack_name = "#{app_name}-#{type}-#{ environment_name }"
|
34
35
|
@confirmation_timeout = options[:confirmation_timeout]
|
35
36
|
@waiter_delay = options[:waiter_delay]
|
@@ -260,7 +260,7 @@ describe KumoKeisei::Stack do
|
|
260
260
|
end
|
261
261
|
|
262
262
|
it "embeds the type into the name of the stack if set" do
|
263
|
-
subject = KumoKeisei::Stack.new(app_name, environment_name, type
|
263
|
+
subject = KumoKeisei::Stack.new(app_name, environment_name, { type: "vpc" } )
|
264
264
|
expect(subject.stack_name).to eq("#{app_name}-vpc-#{environment_name}")
|
265
265
|
end
|
266
266
|
end
|