docker_toolkit 0.1.14 → 0.1.15

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
- SHA1:
3
- metadata.gz: 7a1ad9e1c31909a98322fdeda209fe2c3c8049d3
4
- data.tar.gz: 8cbf717e958e41aa84b3108fbd67a266c42a1e0f
2
+ SHA256:
3
+ metadata.gz: 60acec8c3e29be81601ffc99e34d5da1b63f3467a2eda6a870fbcefc90134880
4
+ data.tar.gz: 5b179fdafd5178d42ec6572d20b69b762f37be4c6e836a58bd5382f7d5d265f5
5
5
  SHA512:
6
- metadata.gz: b3c86d1bc46e512a13261364bf8b80c3ad97f54143697e91939cb3603702215bccdf94f7cbcc1bb3437a1063c79393e30cdabeecbb6e625df90db63f1b23b205
7
- data.tar.gz: b2307a5074354c11ad29bc3b2a32843a04169327992121e36c25069e9f07c047b79019f67a87d04f85b1f8ef365c0f158ebc3bbe0b2266d156c75682e42bfdf8
6
+ metadata.gz: ff8169dd7ae877f49cfd7caec7eb2e6b69581811e1e9be4adb598cb9ee2d600adf41a65b4b7d09ece3133f24795e66d6bb4f00ca3ea2655f69cea2cef269b9b3
7
+ data.tar.gz: 93581ad68dc53cb5629bdd146838e6ef36c340f8a22eaaff31ad4c7d2e4e5bd84b0fa5c8bbe38f35d0d913acb2a42f4a6ae90cdafdf4dce1302283be238b7ea4
data/.rubocop.yml CHANGED
@@ -39,6 +39,9 @@ Style/Lambda:
39
39
 
40
40
  Style/RaiseArgs:
41
41
  EnforcedStyle: compact
42
+
43
+ Style/SpecialGlobalVars:
44
+ Enabled: false
42
45
 
43
46
  Metrics/LineLength:
44
47
  Max: 100
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker_toolkit (0.1.14)
4
+ docker_toolkit (0.1.15)
5
5
  diplomat
6
6
  dotenv
7
7
  json
data/bin/merger.rb CHANGED
@@ -76,9 +76,9 @@ def process_compose_hash(yml, dirname, parent = {})
76
76
  end
77
77
 
78
78
  file_to_load = if File.exist?(dirname + '/' + file)
79
- dirname + '/' + file
80
- else
81
- file
79
+ dirname + '/' + file
80
+ else
81
+ file
82
82
  end
83
83
 
84
84
  tmp = process_compose_hash(YAML.load(File.read(file_to_load)), File.dirname(file_to_load), service)
data/bin/waiter.rb CHANGED
@@ -134,7 +134,7 @@ def wait_for_consul
134
134
  ret = wait_for @opts[:timeout] do
135
135
  cmd = "consul operator raft list-peers -http-addr=#{@opts[:consul_addr]} > /dev/null 2>&1"
136
136
  system(cmd)
137
- $CHILD_STATUS.success?
137
+ $?.success?
138
138
  end
139
139
 
140
140
  yield(ret)
@@ -156,7 +156,7 @@ def wait_for_tcp
156
156
  ret = wait_for @opts[:timeout] do
157
157
  cmd = "nc -z #{@opts[:host]} #{@opts[:port]} > /dev/null 2>&1"
158
158
  system(cmd)
159
- $CHILD_STATUS.success?
159
+ $?.success?
160
160
  end
161
161
 
162
162
  yield(ret)
@@ -167,7 +167,7 @@ def wait_for_db
167
167
  ret = wait_for @opts[:timeout] do
168
168
  cmd = "psql -lqt #{@pg[:user]} #{@pg[:pass]} #{@pg[:host]} #{@pg[:port]} #{@pg[:db]} 2>/dev/null | cut -d \\| -f 1 | grep -qw #{@opts[:db]} > /dev/null 2>&1"
169
169
  system(cmd)
170
- $CHILD_STATUS.success?
170
+ $?.success?
171
171
  end
172
172
 
173
173
  yield(ret)
@@ -178,7 +178,7 @@ def wait_for_tb
178
178
  ret = wait_for @opts[:timeout] do
179
179
  cmd = "echo \"\\dt\" | psql -qt #{@pg[:user]} #{@pg[:pass]} #{@pg[:host]} #{@pg[:port]} #{@pg[:db]} 2>/dev/null | cut -d \\| -f 2 | grep -qw #{@pg[:tb]} > /dev/null 2>&1"
180
180
  system(cmd)
181
- $CHILD_STATUS.success?
181
+ $?.success?
182
182
  end
183
183
 
184
184
  yield(ret)
@@ -30,7 +30,7 @@ module DockerToolkit
30
30
 
31
31
  def execute!(cmd, error = nil)
32
32
  output = execute(cmd)
33
- $CHILD_STATUS.success? || die(error || "Can't execute: #{cmd}")
33
+ $?.success? || die(error || "Can't execute: #{cmd}")
34
34
  output
35
35
  end
36
36
 
@@ -1,5 +1,5 @@
1
1
  module DockerToolkit
2
2
 
3
- VERSION = '0.1.14'.freeze
3
+ VERSION = '0.1.15'.freeze
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Godko Ivan
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.6.14
164
+ rubygems_version: 2.7.3
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Helper scripts for work with docker and consul