kumo_keisei 4.0.2 → 4.0.3

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: ddce475e8634fc1a31056029c37c32f048f4ccfc
4
- data.tar.gz: 680909d211bcdcce60ca69395f2c614313129763
3
+ metadata.gz: 9c116cab1d7427e80c7e517cc1a62c5dc380704b
4
+ data.tar.gz: 6f540668685e80674a94f897c20a5b8e752c4fe6
5
5
  SHA512:
6
- metadata.gz: db0e38bfa628ab3005bc9b52b6937f0d15e2fb33837e2bba4a3638a63df5d2c0f205cac47c1cf7b46a262ed6bec8795e22d8ca3648cd3f05d1d771c0778b951f
7
- data.tar.gz: f8f8da23fe99deb826e4d993050f0d6a3a80179127a9d30214178150e6ecbf866f8a69af80f60b4c8e353dba7faad6be0913f914a4e900ba6b93060f9899fa0d
6
+ metadata.gz: b21ed2b0f957a06986da3854ac3a348a7781b98c23052a812218159fa781fe4fa1581a73ab299764539ca8cff8fb70ec6fb624d9bc04ba2ada46161e460bff21
7
+ data.tar.gz: 17446fcdaf29d7c7c21b820c66724ae7a18ab06a0bf1b46c074f2f758993f38802ec357827b9d70d68e3b4df69deda640fe894a2b9c6e589fea768117fb446ec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.2
1
+ 4.0.3
@@ -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 }, prompt = true)
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}, false ) }
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, {}, false).config(stack_config)}.to raise_error(KumoKeisei::Stack::UsageError)
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
 
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: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redbubble