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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e074093e5803c80698b23e0bf61ef43a99c28ce
4
- data.tar.gz: 6eeabb0fd40e19e9ecd157c6250fcdbf07b019d2
3
+ metadata.gz: 1b0b8f9561af6fcd79747c9f3984edbad7eb4a20
4
+ data.tar.gz: b3477c0ceddfe92f0f7b7ef384c8104ceefd7a59
5
5
  SHA512:
6
- metadata.gz: 5ff1a43fa2cf05f30bef19b8d039719eddba16f157e0d34907a5bca7db211f3e030e00bd39d39fcbd6299a9af56a03b3eb237db5017762932e37e6eefd56fcdb
7
- data.tar.gz: aad6db636d6d217928a23e3ff9de25f4f5b93df64a752390eb754059a81015f8b4ea83a10799cfc99e1cf8f57fadb5e806f9cc35c05d17904cb36681ce477757
6
+ metadata.gz: 5d1b9aa91e9b948d7b33e3a25652f30ba36f000e9b519a92a58858e1fc40bf1bd90f67a5e73ee2f43bbdeedb7515c071c699f5f8533df59144e834871843a736
7
+ data.tar.gz: 9105fcfbf29eeaa92108e8dcd80595e6c515d44b8d647a3647195077efd071f0d9e42ce4c968580ac6c452167f7537f1ce3edcadd7ffc94c7de46c08b2548502
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.3-alpha2
1
+ 3.0.3-alpha3
@@ -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}-nodes-#{ environment_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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumo_keisei
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3.pre.alpha2
4
+ version: 3.0.3.pre.alpha3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redbubble