docker-sync 0.3.4 → 0.3.5

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: 5d3d3c58274da05f69778509de2111171b0f0e46
4
- data.tar.gz: 606d43cd67f3afbb371bd94936076f26ffbec2b6
3
+ metadata.gz: 2a89a19048102b5fcc54438687fb393820dde82c
4
+ data.tar.gz: 296a95c1806e2a39528928792e0a2214474f1cc9
5
5
  SHA512:
6
- metadata.gz: 75054dfd1e7378144311aa2e4d485a1c53aa2c9219371c8c5a06a5271321edcda99f04efbcff7f515cd45fffa683dc8728580f70f0f6e62a1718446dd56aa444
7
- data.tar.gz: f04a891966ae19c5f5ea8722537cf09c57e9e80750a5e93f42e661639f27e533c174d142db46559e0b5ff8936a739634b0f62b5249a4e718e65733b7be07e66a
6
+ metadata.gz: 3f2eb116585b29cdc996a3b986b2e5c98d5bba11b082150e20bf818006b867d10dc0af3de3c54b48f63ad48bf0a59ce46c6e81f9d67a0f33ed670360cd1cdb8a
7
+ data.tar.gz: 95b9667a3536132f1f3d768ac36ececfaa82fe51e48e1621efed5147c995d4cd6d92556ef4ff3ae23e70efe214c5a110290c37ffcb7ebc3dfe0f3658edf93c58
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
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 if config_path.nil?
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 > 5
190
+ break if attempt > max_attempt
190
191
  sleep 1
191
192
  end
192
193
  sync
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Mayer