docker-sync 0.5.9 → 0.5.10.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
- SHA256:
3
- metadata.gz: aa26693fb56484a3916434484ad50e8d21390be91bc8e192a6ccf5a930b3f0b2
4
- data.tar.gz: 8fc473f09b449d83fd08f77048b6b8f1cd5602484c70251fd74ab7872d4a6f77
2
+ SHA1:
3
+ metadata.gz: d87bb0c4a78c2531e1c9c1c339b4a78c6f40d2b3
4
+ data.tar.gz: 910f4a33c15174758ab81df5350a0276245ba99d
5
5
  SHA512:
6
- metadata.gz: 4ecd625a696d9b6637edefb24e211bf2c6baa5fc6a875d2f8e97795dc8c77778a4eccef0938c16ee24bfbdf82026ae006518a8a1be9447e55b625c7cd008ed54
7
- data.tar.gz: 1735944041b8447764f610d86d36c2c7bf01bb10c03020c9bbdfeeb4685982e60aebc08f2cb3958bf6aaf831d304757009642075e212fced6cf6fbb5de377d5a
6
+ metadata.gz: 9b0e1521bcd4900fcfb847a5e11e02f6059103ab6849bc3d5f5c31d3950861d4295b63789065988547b8e43158c029233f7eaa1e0d0f397fa1e81a42febfa99c
7
+ data.tar.gz: 1ebc8c8fe4ee8611cc022cec6232cf793ff41827c225b50f0f1c0a50167013987639a6abedf73efa02563d08a40f2173d69e3bd5b07aff5f98d82096c34bfc43
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.9
1
+ 0.5.10-beta1
@@ -14,7 +14,9 @@ module DockerSync
14
14
  def self.available?
15
15
  return @available if defined? @available
16
16
  cmd = 'brew list unox 2>&1 > /dev/null'
17
- @available = defined?(Bundler) ? Bundler.clean_system(cmd) : system(cmd)
17
+ # TODO: Environment.linux? was just a hotfix for something we did not dig deeper into, as we have should
18
+ # see https://github.com/EugenMayer/docker-sync/pull/630
19
+ @available = Environment.linux? or defined?(Bundler) ? Bundler.clean_system(cmd) : system(cmd)
18
20
  end
19
21
 
20
22
  def self.ensure!
@@ -25,7 +25,6 @@ class UpdateChecker
25
25
  # do not check the image if its the first run - since this it will be downloaded anyway
26
26
  unless @config.first_run?
27
27
  unless has_internet?
28
- check_unison_image
29
28
  check_rsync_image
30
29
  # stop if there was an update
31
30
  if @newer_image_found
@@ -54,76 +54,6 @@ class UpgradeChecker
54
54
 
55
55
  def check_and_warn
56
56
  return if ENV['DOCKER_SYNC_SKIP_UPGRADE']
57
- # this is the upgrade hook for the unison-unox introduction / rename of unison
58
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.1.0')
59
- Thor::Shell::Basic.new.say_status 'warning', 'Please be aware that with the strategy "unison" is now called unison-onesided and you might need to migrate. See https://github.com/EugenMayer/docker-sync/wiki/Migration-Guide for more informations', :red
60
- unless Thor::Shell::Basic.new.yes?('Shall we continue? (y/N)')
61
- exit 1
62
- end
63
- end
64
-
65
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.2.0')
66
- Thor::Shell::Basic.new.say_status 'warning', "A lot changed with 0.2.x! Unison is the default sync, unison-onesided has been REMOVED. If you have been using rsync, have been using unison excludes or you are not sure, please read the upgrade guide or your setup will go lala! : \n\n_Please_ read :): https://github.com/EugenMayer/docker-sync/wiki/1.2-Upgrade-Guide\n\n", :red
67
- unless Thor::Shell::Basic.new.yes?('Shall we continue - DID you read it? (y/N)')
68
- exit 1
69
- end
70
- end
71
-
72
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.3.0')
73
- Thor::Shell::Basic.new.say_status 'warning', "The installation progress of docker-sync 0.3.0 has changed, brew is now mandatory - you need to uninstall unox ! : \n\n_Please_ read :): https://github.com/EugenMayer/docker-sync/wiki/1.2-Upgrade-Guide\n\n", :red
74
-
75
- cmd1 = 'sudo rm -f /usr/local/bin/unison-fsmonitor && brew tap eugenmayer/dockersync && brew install eugenmayer/dockersync/unox'
76
- Thor::Shell::Basic.new.say_status 'ok', cmd1, :rwhite
77
-
78
- if Thor::Shell::Basic.new.yes?('I will reinstall unox for you using the above command (y/N)')
79
- system cmd1
80
- else
81
- raise('Please reinstall docker-sync yourself')
82
- end
83
- end
84
-
85
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.0')
86
- Thor::Shell::Basic.new.say_status 'warning', "docker-sync has a new superior default sync strategy native_osx - consider switching to it no matter if you used unison or rsync. \nIt does no longer need Unison/Unox on OSX - no brew needed either. And its a lot thriftier ! \n\n_Please_ read :): https://github.com/EugenMayer/docker-sync/wiki/1.2-Upgrade-Guide\n\n", :red
87
-
88
- unless Thor::Shell::Basic.new.yes?('Shall we continue - DID you read it - really :) ? (y/N)')
89
- exit 1
90
- end
91
- end
92
-
93
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.1')
94
- 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
95
-
96
- unless Thor::Shell::Basic.new.yes?('Did you fix your docker-compose-dev.yml? (y/N)')
97
- exit 1
98
- end
99
- end
100
-
101
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.2')
102
- checker = UpdateChecker.new
103
- checker.check_unison_image
104
-
105
- 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
106
-
107
- unless Thor::Shell::Basic.new.yes?('Just wanted you to know that! (y/N)')
108
- exit 1
109
- end
110
- end
111
-
112
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.3')
113
- checker = UpdateChecker.new
114
- checker.check_unison_image
115
- end
116
-
117
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.4')
118
- checker = UpdateChecker.new
119
- checker.check_unison_image
120
- end
121
-
122
- if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.5')
123
- checker = UpdateChecker.new
124
- checker.check_unison_image
125
- end
126
-
127
57
  if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.5.5')
128
58
  checker = UpdateChecker.new
129
59
  checker.check_unison_image
@@ -136,9 +66,6 @@ class UpgradeChecker
136
66
  end
137
67
 
138
68
  if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.5.6')
139
- checker = UpdateChecker.new
140
- checker.check_unison_image
141
-
142
69
  Thor::Shell::Basic.new.say_status 'warning', "If you are upgrading from 0.5.4 or below, please run `brew update && brew upgrade unison` AND `docker-compose down && docker-sync clean` or `docker-sync-stack clean` since you need to recreate the sync container", :red
143
70
 
144
71
  unless Thor::Shell::Basic.new.yes?('Sync will fail otherwise. Continue? (y/N)')
@@ -155,8 +155,8 @@ class Sync < Thor
155
155
 
156
156
  # Check to see if we're already running:
157
157
  if daemon_running?
158
- say_status 'warning', 'docker-sync already started for this configuration', :yellow
159
- exit 1
158
+ say_status 'ok:', 'docker-sync already started for this configuration', :white
159
+ exit 0
160
160
  end
161
161
 
162
162
  # If we're daemonizing, run a sync first to ensure the containers exist so that a docker-compose up won't fail:
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.9
4
+ version: 0.5.10.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: 2018-10-02 00:00:00.000000000 Z
11
+ date: 2019-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -220,12 +220,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
220
  version: '2.0'
221
221
  required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
- - - ">="
223
+ - - ">"
224
224
  - !ruby/object:Gem::Version
225
- version: '0'
225
+ version: 1.3.1
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.7.6
228
+ rubygems_version: 2.6.14.3
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Docker Sync - Fast and efficient way to sync code to docker-containers