kumo_keisei 3.0.3.pre.alpha2 → 3.0.3.pre.alpha3
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 +2 -2
- data/spec/lib/kumo_keisei/stack_spec.rb +12 -0
- 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: 1b0b8f9561af6fcd79747c9f3984edbad7eb4a20
|
4
|
+
data.tar.gz: b3477c0ceddfe92f0f7b7ef384c8104ceefd7a59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d1b9aa91e9b948d7b33e3a25652f30ba36f000e9b519a92a58858e1fc40bf1bd90f67a5e73ee2f43bbdeedb7515c071c699f5f8533df59144e834871843a736
|
7
|
+
data.tar.gz: 9105fcfbf29eeaa92108e8dcd80595e6c515d44b8d647a3647195077efd071f0d9e42ce4c968580ac6c452167f7537f1ce3edcadd7ffc94c7de46c08b2548502
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.3-
|
1
|
+
3.0.3-alpha3
|
data/lib/kumo_keisei/stack.rb
CHANGED
@@ -27,10 +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, options = { confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90}
|
30
|
+
def initialize(app_name, environment_name, type = 'nodes', options = { confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90})
|
31
31
|
@app_name = app_name
|
32
32
|
@env_name = environment_name
|
33
|
-
@stack_name = "#{app_name}
|
33
|
+
@stack_name = "#{app_name}-#{type}-#{ environment_name }"
|
34
34
|
@confirmation_timeout = options[:confirmation_timeout]
|
35
35
|
@waiter_delay = options[:waiter_delay]
|
36
36
|
@waiter_attempts = options[:waiter_attempts]
|
@@ -253,4 +253,16 @@ describe KumoKeisei::Stack do
|
|
253
253
|
end
|
254
254
|
end
|
255
255
|
end
|
256
|
+
|
257
|
+
describe "#type" do
|
258
|
+
it "presumes stacks are of type node if the type is not set" do
|
259
|
+
expect(subject.stack_name).to eq("#{app_name}-nodes-#{environment_name}")
|
260
|
+
end
|
261
|
+
|
262
|
+
it "embeds the type into the name of the stack if set" do
|
263
|
+
subject = KumoKeisei::Stack.new(app_name, environment_name, type = "vpc")
|
264
|
+
expect(subject.stack_name).to eq("#{app_name}-vpc-#{environment_name}")
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
256
268
|
end
|