docker-sync 0.4.2 → 0.4.3.pre.beta1

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: 0dc6a6d17b0c061b6f089c82f25fccdee21b477f
4
- data.tar.gz: 52d4daa5b8b9aab3e6bb9fd218dd7d324ff55a94
3
+ metadata.gz: 4f78caf8b3bc7851078c085475d5fe1e58d1db1b
4
+ data.tar.gz: 133d39b0788b5b97621c975fc75a52b86220a12e
5
5
  SHA512:
6
- metadata.gz: 9b1c17a21b47ef1bc4445ad5cfe705e78c64ada480e9f677c0adf1485fe184415b27e94a467b9520da759513baf0fa26f6e23ae03305166ea67e4934ab6b66b1
7
- data.tar.gz: d1eed5aba038bcfb69f49f49ad09782bdf0b54e435cc539455950fd4860c539e8b194f7dd7a41c0152fa640206a50fcce4a00c7c5867ffcd6d5ab6f4bbb0b2f0
6
+ metadata.gz: bed20da2fc7277bd372206f171c8548696d7c6ee2d7ab7dc427e6def8b2fe4ff91de1bc759c439beae1dbd93fde3cccf98dd33909943dc93f1668f6b0df869bf
7
+ data.tar.gz: ba30747b246f8f6f2f3c9fa5ed6efe9b0466cb180890d67e2a19f9e6051a20a4c229d027b5b3ca3bdfd51dc93dac8c373bd598545e5cb91f86a97c34124fdd50
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
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, that unison is picked as a default automatically, if you use docker-machine", :red
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 no that! (y/N)')
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
@@ -17,7 +17,7 @@ module Docker_Sync
17
17
  @sync_name = sync_name
18
18
  @watch_fork = nil
19
19
  @watch_thread = nil
20
- @unison = Docker_Sync::SyncStrategy::Unison.new(@sync_name, @options)
20
+ @unison = Docker_Sync::SyncStrategy::NativeOsx.new(@sync_name, @options)
21
21
  end
22
22
 
23
23
  def run
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 --daemom'
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.2
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-05 00:00:00.000000000 Z
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: '0'
198
+ version: 1.3.1
199
199
  requirements: []
200
200
  rubyforge_project:
201
201
  rubygems_version: 2.4.5.1