docker-sync 0.5.3 → 0.5.4
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 +4 -4
- data/VERSION +1 -1
- data/lib/docker-sync/sync_strategy/unison.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f8b70cd8eadb981ebb2d30dbb2aa82ed2457a24
|
4
|
+
data.tar.gz: e5b01b4e856a62db95006063eb10e13bccfba9f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a84e897db840254b726b4fbefc20905b4b186f8c46053c5d3b8f34e48749c0bd6d9b12f4e579caa3ff34ea6e03f5428fbc876d92a878e1964cd735c6c39943af
|
7
|
+
data.tar.gz: 4917fb9c501ff074d3266d56557fe2859880e2383f46acb6c14efbdf54267e4baf7c868be7b39fef3d1e41524867a0761331d9d319a01da3c5ded71f141395e5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.4
|
@@ -119,11 +119,10 @@ module DockerSync
|
|
119
119
|
args.push("'#{@options['src']}'")
|
120
120
|
args.push('-auto')
|
121
121
|
args.push('-batch')
|
122
|
-
|
123
|
-
dest = "socket://#{@options['sync_host_ip']}:#{sync_host_port}"
|
124
|
-
args.push(sync_prefer(dest))
|
122
|
+
args.push(sync_prefer)
|
125
123
|
args.push(@options['sync_args']) if @options.key?('sync_args')
|
126
|
-
|
124
|
+
sync_host_port = get_host_port(get_container_name, UNISON_CONTAINER_PORT)
|
125
|
+
args.push("socket://#{@options['sync_host_ip']}:#{sync_host_port}")
|
127
126
|
|
128
127
|
if @options.key?('sync_group') || @options.key?('sync_groupid')
|
129
128
|
raise('Unison does not support sync_group, sync_groupid - please use rsync if you need that')
|
@@ -132,15 +131,16 @@ module DockerSync
|
|
132
131
|
end
|
133
132
|
|
134
133
|
# cares about conflict resolution
|
135
|
-
def sync_prefer
|
134
|
+
def sync_prefer
|
136
135
|
case @options.fetch('sync_prefer', 'default')
|
137
136
|
when 'default' then "-prefer '#{@options['src']}' -copyonconflict" # thats our default, if nothing is set
|
138
137
|
when 'src' then "-prefer '#{@options['src']}'"
|
139
|
-
when 'dest' then "-prefer '
|
138
|
+
when 'dest' then "-prefer 'socket://#{@options['sync_host_ip']}:#{sync_host_port}'"
|
140
139
|
else "-prefer '#{@options['sync_prefer']}'"
|
141
140
|
end
|
142
141
|
end
|
143
142
|
|
143
|
+
|
144
144
|
def start_container
|
145
145
|
say_status 'ok', "Starting unison for sync #{@sync_name}", :white
|
146
146
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|