docker-sync 0.4.2 → 0.4.3.pre.beta1
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f78caf8b3bc7851078c085475d5fe1e58d1db1b
|
4
|
+
data.tar.gz: 133d39b0788b5b97621c975fc75a52b86220a12e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bed20da2fc7277bd372206f171c8548696d7c6ee2d7ab7dc427e6def8b2fe4ff91de1bc759c439beae1dbd93fde3cccf98dd33909943dc93f1668f6b0df869bf
|
7
|
+
data.tar.gz: ba30747b246f8f6f2f3c9fa5ed6efe9b0466cb180890d67e2a19f9e6051a20a4c229d027b5b3ca3bdfd51dc93dac8c373bd598545e5cb91f86a97c34124fdd50
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3-beta1
|
@@ -45,6 +45,7 @@ module Docker_Sync
|
|
45
45
|
|
46
46
|
ignore_strings = expand_ignore_strings
|
47
47
|
env['UNISON_EXCLUDES'] = ignore_strings.join(' ')
|
48
|
+
env['UNISON_ARGS'] = @options['sync_args']
|
48
49
|
env['UNISON_SYNC_PREFER'] = sync_prefer
|
49
50
|
env['MAX_INOTIFY_WATCHES'] = @options['max_inotify_watches'] if @options.key?('max_inotify_watches')
|
50
51
|
if @options['sync_userid'] == 'from_host'
|
@@ -106,6 +107,10 @@ module Docker_Sync
|
|
106
107
|
end
|
107
108
|
end
|
108
109
|
|
110
|
+
def get_container_name
|
111
|
+
@sync_name.to_s
|
112
|
+
end
|
113
|
+
|
109
114
|
private
|
110
115
|
|
111
116
|
def reset_container
|
@@ -115,10 +120,6 @@ module Docker_Sync
|
|
115
120
|
end
|
116
121
|
|
117
122
|
|
118
|
-
def get_container_name
|
119
|
-
return "#{@sync_name}"
|
120
|
-
end
|
121
|
-
|
122
123
|
def get_volume_name
|
123
124
|
return @sync_name
|
124
125
|
end
|
@@ -137,6 +138,8 @@ module Docker_Sync
|
|
137
138
|
'-prefer /host_sync'
|
138
139
|
when 'dest' then
|
139
140
|
'-prefer /app_sync'
|
141
|
+
when 'newer' then
|
142
|
+
'-prefer newer'
|
140
143
|
else
|
141
144
|
raise 'sync_pref can only be: src or dest, no path - path is no longer needed it abstracted'
|
142
145
|
end
|
@@ -99,13 +99,18 @@ class UpgradeChecker
|
|
99
99
|
checker = UpdateChecker.new
|
100
100
|
checker.check_unison_hostsync_image
|
101
101
|
|
102
|
-
Thor::Shell::Basic.new.say_status 'warning', "The native_osx is NOW ONLY for docker-for-mac, this is due to https://github.com/EugenMayer/docker-sync/issues/346\n\nThat means
|
102
|
+
Thor::Shell::Basic.new.say_status 'warning', "The native_osx is NOW ONLY for docker-for-mac, this is due to https://github.com/EugenMayer/docker-sync/issues/346\n\nThat means that unison is picked as a default automatically if you use docker-machine", :red
|
103
103
|
|
104
|
-
unless Thor::Shell::Basic.new.yes?('Just wanted you to
|
104
|
+
unless Thor::Shell::Basic.new.yes?('Just wanted you to know that! (y/N)')
|
105
105
|
exit 1
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
+
if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.3')
|
110
|
+
checker = UpdateChecker.new
|
111
|
+
checker.check_unison_hostsync_image
|
112
|
+
end
|
113
|
+
|
109
114
|
# update the upgrade_status
|
110
115
|
@config.update! 'upgrade_status' => "#{UpgradeChecker.get_current_version}"
|
111
116
|
end
|
data/tasks/sync/sync.thor
CHANGED
@@ -39,7 +39,7 @@ class Sync < Thor
|
|
39
39
|
start_dir = Dir.pwd # Set start_dir variable to be equal to pre-daemonized folder, since daemonizing will change dir to '/'
|
40
40
|
|
41
41
|
if options['daemon']
|
42
|
-
puts 'WARNING: --daemon is deprecated and now the default. Just start without --
|
42
|
+
puts 'WARNING: --daemon is deprecated and now the default. Just start without --daemon'
|
43
43
|
end
|
44
44
|
|
45
45
|
if options['foreground']
|
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.4.
|
4
|
+
version: 0.4.3.pre.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -193,9 +193,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
193
|
version: '2.0'
|
194
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
195
|
requirements:
|
196
|
-
- - "
|
196
|
+
- - ">"
|
197
197
|
- !ruby/object:Gem::Version
|
198
|
-
version:
|
198
|
+
version: 1.3.1
|
199
199
|
requirements: []
|
200
200
|
rubyforge_project:
|
201
201
|
rubygems_version: 2.4.5.1
|