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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 667eb5dd22263abfa69b6211762b3fc3ec686bfa
4
- data.tar.gz: 81c6b3aadb203204b4050b555273f7b549b71323
3
+ metadata.gz: fc4783653aff9fd52ba241f9fb22c89a95ee89fa
4
+ data.tar.gz: 8554fae208d464a3b4519b302d9c51064168106d
5
5
  SHA512:
6
- metadata.gz: f775a88c8115161babd3082b452e7e3287c34be1bdf20a660d5a3260c138c465ea50e91396172b3b6231288be16ebcddc43fd55f7f803242d7c62e67340803a9
7
- data.tar.gz: 71cc0d3d0ac23bcb9d709473e036b1ff28188cdbd046f454f5d24b9e5c8382292650d5005f59482fcc11becb6bcbeb09de37654c6551e4cd25a9afa783ae120b
6
+ metadata.gz: eea67f43fb51d1ba95456719d66d71c2c9b56efed078942359298b5ec573324f5d7e5ee9f2bc6dad2a34e0f468bcffaeef6eedd5cfe41ed76e12e54c47ec59f8
7
+ data.tar.gz: 80d3915200189a3c0b6d2c2113cd144e8c8df20783fe62430f1b203d870b1e18d2d9401e347d1bde8150bd550c2a7b7d8d5479a03799f2f4fe5d1eabf0df2d73
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1-beta1
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1.pre.beta1
4
+ version: 0.4.1.pre.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Mayer