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 +5 -5
- data/.rubocop.yml +3 -0
- data/Gemfile.lock +1 -1
- data/bin/merger.rb +3 -3
- data/bin/waiter.rb +4 -4
- data/lib/docker_toolkit/runner.rb +1 -1
- data/lib/docker_toolkit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 60acec8c3e29be81601ffc99e34d5da1b63f3467a2eda6a870fbcefc90134880
|
4
|
+
data.tar.gz: 5b179fdafd5178d42ec6572d20b69b762f37be4c6e836a58bd5382f7d5d265f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff8169dd7ae877f49cfd7caec7eb2e6b69581811e1e9be4adb598cb9ee2d600adf41a65b4b7d09ece3133f24795e66d6bb4f00ca3ea2655f69cea2cef269b9b3
|
7
|
+
data.tar.gz: 93581ad68dc53cb5629bdd146838e6ef36c340f8a22eaaff31ad4c7d2e4e5bd84b0fa5c8bbe38f35d0d913acb2a42f4a6ae90cdafdf4dce1302283be238b7ea4
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
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
|
-
|
80
|
-
|
81
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
181
|
+
$?.success?
|
182
182
|
end
|
183
183
|
|
184
184
|
yield(ret)
|
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.
|
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.
|
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
|