docker-sync 0.4.1.pre.beta1 → 0.4.1.pre.beta2
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/update_check.rb +13 -0
- data/lib/docker-sync/upgrade_check.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc4783653aff9fd52ba241f9fb22c89a95ee89fa
|
4
|
+
data.tar.gz: 8554fae208d464a3b4519b302d9c51064168106d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eea67f43fb51d1ba95456719d66d71c2c9b56efed078942359298b5ec573324f5d7e5ee9f2bc6dad2a34e0f468bcffaeef6eedd5cfe41ed76e12e54c47ec59f8
|
7
|
+
data.tar.gz: 80d3915200189a3c0b6d2c2113cd144e8c8df20783fe62430f1b203d870b1e18d2d9401e347d1bde8150bd550c2a7b7d8d5479a03799f2f4fe5d1eabf0df2d73
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.1-
|
1
|
+
0.4.1-beta2
|
@@ -24,6 +24,7 @@ class UpdateChecker
|
|
24
24
|
# do not check the image if its the first run - since this it will be downloaded anyway
|
25
25
|
unless @config.first_run?
|
26
26
|
unless has_internet?
|
27
|
+
check_unison_hostsync_image
|
27
28
|
check_unison_image
|
28
29
|
check_rsync_image
|
29
30
|
# stop if there was an update
|
@@ -66,6 +67,18 @@ class UpdateChecker
|
|
66
67
|
|
67
68
|
end
|
68
69
|
|
70
|
+
def check_unison_hostsync_image
|
71
|
+
say_status 'ok','Checking if a newer native_osx (unison:hostsync) image is available'
|
72
|
+
|
73
|
+
if system("docker pull eugenmayer/unison:hostsync | grep 'Downloaded newer image for'")
|
74
|
+
say_status 'ok', 'Downloaded newer image for native_osx', :green
|
75
|
+
@newer_image_found = true
|
76
|
+
else
|
77
|
+
say_status 'ok', 'No newer image found - current image is up to date.'
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
|
69
82
|
def check_unison_image
|
70
83
|
say_status 'ok','Checking if a newer unison image is available'
|
71
84
|
|
@@ -86,6 +86,14 @@ class UpgradeChecker
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
+
if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.1')
|
90
|
+
Thor::Shell::Basic.new.say_status 'warning', "Please add :nocopy to every named-volume mount you defined in your docker-compose-dev.yml! \n\nWhy? : https://github.com/EugenMayer/docker-sync/wiki/2.-Configuration#why-nocopy-is-important\n\n", :red
|
91
|
+
|
92
|
+
unless Thor::Shell::Basic.new.yes?('Did you fix your docker-compose-dev.yml? (y/N)')
|
93
|
+
exit 1
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
89
97
|
# update the upgrade_status
|
90
98
|
@config.update! 'upgrade_status' => "#{UpgradeChecker.get_current_version}"
|
91
99
|
end
|