opzworks 0.6.0 → 0.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12927c6f956242bf1f1e1c90f9c4b14ddd42b472
4
- data.tar.gz: 81d891cf89b29772a00d6de50c820d248adf8a96
3
+ metadata.gz: 6c18a9837e56cadee69ce3d380874f07ab284103
4
+ data.tar.gz: 8905668351c58b958be1eda5f3c0a054df805403
5
5
  SHA512:
6
- metadata.gz: fb75b56d8dd6b30dddccc38f91202b4e509f708985bca9145ff545c687fff08d9a893c8a075f358d046e827441c14a3e18c7ad612d723db68c1494379e86f934
7
- data.tar.gz: 748284a47c95da53cd59ed00d7ca12d0e0b418eae160f4317b1e692125cd984b936ce3b6e10d1f0e612b0cde046afbf3539d1dc2e901d2c421edeb758c9e188c
6
+ metadata.gz: e618a7577ff67deca250c1147123dfec1341510cba1d44f5098d5c6794df1f8d56794fa293aa971fc75d92011f4021be5d4bbb706d816c5c5ebec18eb0a059a8
7
+ data.tar.gz: 1d2f6ddbb8b0fbdec84d9f010b072093523449d061d42e7e62893382ea9ac1d34a2a4e042639f26c846e89679ec0ccc54b628158bc193922ae8bb0ddec37ed80
@@ -35,7 +35,7 @@ def es_get_input(input, data = {}, *cmd)
35
35
  STDOUT.print 'Disable shard allocation before starting? (true/false, default is true): '.foreground(:blue)
36
36
  disable_allocation = STDIN.gets.chomp
37
37
  @disable_shard_allocation = case disable_allocation
38
- when false
38
+ when 'false'
39
39
  false
40
40
  else
41
41
  true
@@ -72,7 +72,7 @@ def es_enable_allocation(ip, type)
72
72
  end
73
73
  break
74
74
  rescue StandardError => e
75
- puts 'Caught exception while trying to change allocation state: '.foreground(:yellow) + e.foreground(:red) + ', looping around...'.foreground(:yellow) if count == 0
75
+ puts 'Caught exception while trying to change allocation state: '.foreground(:yellow) + e.to_s.foreground(:red) + ', looping around...'.foreground(:yellow) if count == 0
76
76
  count += 1
77
77
  sleep 1
78
78
  end
@@ -112,7 +112,7 @@ def es_wait_for_status(ip, color)
112
112
  end
113
113
  json = JSON.parse response.body
114
114
  rescue StandardError => e
115
- puts 'Caught exception while trying to check cluster status: '.foreground(:yellow) + e.foreground(:red) + ', looping around...'.foreground(:yellow) if rescue_count == 0
115
+ puts 'Caught exception while trying to check cluster status: '.foreground(:yellow) + e.to_s.foreground(:red) + ', looping around...'.foreground(:yellow) if rescue_count == 0
116
116
  rescue_count += 1
117
117
  printf '.'
118
118
  sleep 1
data/lib/opzworks/meta.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module OpzWorks
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.6.1'.freeze
4
4
  AUTHORS = ['Grant Heffernan', 'Mapzen'].freeze
5
5
  EMAIL = ['grant@mapzen.com'].freeze
6
6
  DESCRIPTION = 'OpzWorks Utilities'.freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opzworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-21 00:00:00.000000000 Z
12
+ date: 2016-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk