kumo_keisei 4.0.2 → 4.0.3
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/VERSION +1 -1
- data/lib/kumo_keisei/stack.rb +1 -9
- data/spec/lib/kumo_keisei/stack_spec.rb +2 -2
- 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: 9c116cab1d7427e80c7e517cc1a62c5dc380704b
|
4
|
+
data.tar.gz: 6f540668685e80674a94f897c20a5b8e752c4fe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b21ed2b0f957a06986da3854ac3a348a7781b98c23052a812218159fa781fe4fa1581a73ab299764539ca8cff8fb70ec6fb624d9bc04ba2ada46161e460bff21
|
7
|
+
data.tar.gz: 17446fcdaf29d7c7c21b820c66724ae7a18ab06a0bf1b46c074f2f758993f38802ec357827b9d70d68e3b4df69deda640fe894a2b9c6e589fea768117fb446ec
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.3
|
data/lib/kumo_keisei/stack.rb
CHANGED
@@ -28,21 +28,13 @@ 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 }
|
31
|
+
def initialize(app_name, environment_name, options = { confirmation_timeout: 30, waiter_delay: 20, waiter_attempts: 90 })
|
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 prompt
|
39
|
-
end
|
40
|
-
|
41
|
-
def prompt_user
|
42
|
-
puts "WARNING: You are about to lookup/create/update/delete #{@stack_name}."
|
43
|
-
puts "We have recently changed the way we name stacks in aws, if #{@stack_name} looks correct, hit 'Y', otherwise hit anything else and read more at 'https://github.com/redbubble/kumo_keisei_gem'"
|
44
|
-
continue = $stdin.gets.chomp.downcase
|
45
|
-
exit 1 if continue != 'y'
|
46
38
|
end
|
47
39
|
|
48
40
|
def apply!(stack_config)
|
@@ -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} ) }
|
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).config(stack_config)}.to raise_error(KumoKeisei::Stack::UsageError)
|
294
294
|
end
|
295
295
|
end
|
296
296
|
|