docker-sync 0.5.6 → 0.5.7
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: d9b0bbe3c46dc3198195f56ecade1577fe9ae97a
|
4
|
+
data.tar.gz: f54093017e0e51194753815902d87feee75db211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd43a0bc62654a748ea0bd13603cde76151879e9a755dc1ef5946de6c495ea7f4a1b98a0e1427335f28824eae6141cf12e527aa76540d3165f2ce07d5cff21b7
|
7
|
+
data.tar.gz: 20a97b141f4f6651d1528c064145f208352f9ae17e0c29d8a62cc17d08f892634dec74184f3d90952381f5fc5c39c2bfbe829d355f1034bd07fe2a00707555ef
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
@@ -57,6 +57,10 @@ module DockerSync
|
|
57
57
|
# for each strategy check if a custom image has been defined and inject that into the sync-endpoints
|
58
58
|
# which do fit for this strategy
|
59
59
|
%w(rsync unison native_osx native).each do |strategy|
|
60
|
+
if @config_global.key?("#{strategy}_image")
|
61
|
+
@config_syncs[name]['image'] = @config_global["#{strategy}_image"]
|
62
|
+
end
|
63
|
+
|
60
64
|
if config.key?("#{strategy}_image") && @config_syncs[name]['sync_strategy'] == strategy
|
61
65
|
@config_syncs[name]['image'] = config["#{strategy}_image"]
|
62
66
|
end
|
@@ -23,13 +23,9 @@ module DockerSync
|
|
23
23
|
if @options.key?('image')
|
24
24
|
@docker_image = @options['image']
|
25
25
|
else
|
26
|
-
@docker_image = 'eugenmayer/unison:2.51.2.
|
26
|
+
@docker_image = 'eugenmayer/unison:2.51.2.1'
|
27
27
|
end
|
28
28
|
|
29
|
-
# TODO: remove this when we have a more stable image, but for now, we need this
|
30
|
-
uc = UpdateChecker.new
|
31
|
-
uc.check_unison_image
|
32
|
-
|
33
29
|
begin
|
34
30
|
Dependencies::Docker.ensure!
|
35
31
|
rescue StandardError => e
|
@@ -71,10 +71,11 @@ class UpdateChecker
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def check_unison_image
|
74
|
+
return # we do not need this anymore since we use versioned ( tagged ) images and they will be pulled autoamtically if they are missing
|
74
75
|
return if ENV['DOCKER_SYNC_SKIP_UPDATE']
|
75
76
|
say_status 'ok','Checking if a newer unison image is available'
|
76
77
|
|
77
|
-
if system("docker pull eugenmayer/unison:2.51.2.
|
78
|
+
if system("docker pull eugenmayer/unison:2.51.2.1 | grep 'Downloaded newer image for'")
|
78
79
|
say_status 'ok', 'Downloaded newer image for unison', :green
|
79
80
|
@newer_image_found = true
|
80
81
|
else
|
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.7
|
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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.20'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.20.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.20'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.20.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: gem_update_checker
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|