docker-sync 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/docker-sync/config/project_config.rb +1 -1
- data/lib/docker-sync/sync_strategy/unison.rb +2 -1
- 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: 2a89a19048102b5fcc54438687fb393820dde82c
|
4
|
+
data.tar.gz: 296a95c1806e2a39528928792e0a2214474f1cc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f2eb116585b29cdc996a3b986b2e5c98d5bba11b082150e20bf818006b867d10dc0af3de3c54b48f63ad48bf0a59ce46c6e81f9d67a0f33ed670360cd1cdb8a
|
7
|
+
data.tar.gz: 95b9667a3536132f1f3d768ac36ececfaa82fe51e48e1621efed5147c995d4cd6d92556ef4ff3ae23e70efe214c5a110290c37ffcb7ebc3dfe0f3658edf93c58
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
@@ -26,7 +26,7 @@ module DockerSync
|
|
26
26
|
|
27
27
|
def initialize(config_path: nil, config_string: nil)
|
28
28
|
if config_string.nil?
|
29
|
-
config_path = DockerSync::ConfigLocator.lookup_project_config_path
|
29
|
+
config_path = DockerSync::ConfigLocator.lookup_project_config_path
|
30
30
|
load_project_config(config_path)
|
31
31
|
else
|
32
32
|
@config = DockerSync::ConfigSerializer.default_deserializer_string(config_string)
|
@@ -182,11 +182,12 @@ module Docker_Sync
|
|
182
182
|
cmd = "unison -testserver #{@options['dest']} \"socket://#{@options['sync_host_ip']}:#{sync_host_port}\""
|
183
183
|
say_status 'command', cmd, :white if @options['verbose']
|
184
184
|
attempt = 0
|
185
|
+
max_attempt = @options['max_attempt'] || 5
|
185
186
|
loop do
|
186
187
|
stdout, stderr, exit_status = Open3.capture3(cmd)
|
187
188
|
break if exit_status == 0
|
188
189
|
attempt += 1
|
189
|
-
break if attempt >
|
190
|
+
break if attempt > max_attempt
|
190
191
|
sleep 1
|
191
192
|
end
|
192
193
|
sync
|