kumo_keisei 4.0.0 → 4.0.1
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 +2 -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: a66315fbd003e8f9df5a8da1ac35242cabbd076f
|
4
|
+
data.tar.gz: f0a69c4e6c24abe0d13cb51886dbe0c63332a09d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48c9b4ea445da9296f83cc6cace3e181038b96ddd4c2896fcca38668d8a1361ec418e06fb8d232f410b1f1555287492233ea035c1704351ca7c76f5b667a07ea
|
7
|
+
data.tar.gz: 7c36b72fcdda1a3dcc0b5bb5d595effb513daef4368428cddd7cfc20bee866b8c4b43d0a3f2c4dae700bd4aecf33aca2b9a94c652d2d58fde3019eb69c72666b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.1
|
data/lib/kumo_keisei/stack.rb
CHANGED
@@ -28,14 +28,14 @@ module KumoKeisei
|
|
28
28
|
self.new(app_name, environment_name).exists?
|
29
29
|
end
|
30
30
|
|
31
|
-
def initialize(app_name, environment_name, options = { confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90, prompt_user
|
31
|
+
def initialize(app_name, environment_name, options = { confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90 }, prompt_user = true)
|
32
32
|
@env_name = environment_name
|
33
33
|
@app_name = app_name
|
34
34
|
@stack_name = "#{app_name}-#{ environment_name }"
|
35
35
|
@confirmation_timeout = options[:confirmation_timeout]
|
36
36
|
@waiter_delay = options[:waiter_delay]
|
37
37
|
@waiter_attempts = options[:waiter_attempts]
|
38
|
-
prompt_user if
|
38
|
+
prompt_user if prompt_user
|
39
39
|
end
|
40
40
|
|
41
41
|
def prompt_user
|
@@ -31,7 +31,7 @@ describe KumoKeisei::Stack do
|
|
31
31
|
cf_stack_update_params.merge(on_failure: "DELETE")
|
32
32
|
end
|
33
33
|
let(:confirmation_timeout) { 30 }
|
34
|
-
subject(:instance) { KumoKeisei::Stack.new(app_name, environment_name, confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90,
|
34
|
+
subject(:instance) { KumoKeisei::Stack.new(app_name, environment_name, {confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90}, false ) }
|
35
35
|
let(:stack_config) {
|
36
36
|
{
|
37
37
|
config_path: 'config-path',
|
@@ -290,7 +290,7 @@ describe KumoKeisei::Stack do
|
|
290
290
|
}
|
291
291
|
}
|
292
292
|
it "will raise an error" do
|
293
|
-
expect { described_class.new(app_name, environment_name,
|
293
|
+
expect { described_class.new(app_name, environment_name, {}, false).config(stack_config)}.to raise_error(KumoKeisei::Stack::UsageError)
|
294
294
|
end
|
295
295
|
end
|
296
296
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kumo_keisei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redbubble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|