docker-sync 0.4.0.pre.beta2 → 0.4.0

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: c66c65a38606565e60bf76aa80b33934690b6851
4
- data.tar.gz: ee1aa4c4a84dfbb9eb9dfdbaa5fc31d3a27cef46
3
+ metadata.gz: 14d9d3ece46e03a2e565e2dde64904390fb65ac8
4
+ data.tar.gz: b84c982835813565bfdd2998dd6f5cd1bfa09d16
5
5
  SHA512:
6
- metadata.gz: 250dc5898a0f2e92ad7208bec4ff1c92b1a3177daf1873c8768ec634e6e4e3f1b68c2a3f8aa5e1fb8c9c9e3ca49952dcd360a41b25b1102060672727cfa52fd3
7
- data.tar.gz: c59ef8da87e69dd577bb9f647de17ed9db331e6b4a6aae73210c7c1cecd05053145c89222fa8f96332d72afb794fab8e33624b203182ee22a0487e809da8b436
6
+ metadata.gz: 68eafeed28b2bac6692b02cdb43b510f221dd45931650805c594a8d5cc21a4ef00b1d2dbdfaefa723bf423745ca37c55fd909e45100760e7f5d10cc309cfa65c
7
+ data.tar.gz: 7c757603135a5600ab4e17cbf37bf2ab945531189ec8959e0025072fbed0b25dc308556e829ad810bd8308340e671bb8dd7651f6ddedb88a155f55fd18ee7680
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0-beta2
1
+ 0.4.0
@@ -25,11 +25,11 @@ module Docker_Sync
25
25
 
26
26
  defaults = {
27
27
  'verbose' => false,
28
- 'sync_host_ip' => get_host_ip_default
29
28
  }
29
+
30
30
  # even if sync_host_ip is set, if it is set to auto, enforce the default
31
- if options.key?('sync_host_ip') && options['sync_host_ip'] == 'auto' || options['sync_host_ip'] == ''
32
- options['sync_host_ip'] = defaults['sync_host_ip']
31
+ if !options.key?('sync_host_ip') || options['sync_host_ip'] == 'auto' || options['sync_host_ip'] == ''
32
+ options['sync_host_ip'] = get_host_ip_default
33
33
  end
34
34
 
35
35
  @options = defaults.merge(options)
@@ -71,7 +71,7 @@ module Docker_Sync
71
71
  return '127.0.0.1' if DockerSync::Preconditions::Strategy.instance.is_driver_docker_for_mac?
72
72
 
73
73
  if DockerSync::Preconditions::Strategy.instance.is_driver_docker_toolbox?
74
- cmd = 'docker-machine ip'
74
+ cmd = 'docker-machine ip $(docker-machine active)'
75
75
  stdout, stderr, exit_status = Open3.capture3(cmd)
76
76
  unless exit_status.success?
77
77
  raise "Error getting sync_host_ip automatically, exit code #{$?.exitstatus} ... #{stderr}"
@@ -70,7 +70,7 @@ class UpgradeChecker
70
70
  cmd1 = 'sudo rm -f /usr/local/bin/unison-fsmonitor && brew tap eugenmayer/dockersync && brew install eugenmayer/dockersync/unox'
71
71
  Thor::Shell::Basic.new.say_status 'ok', cmd1, :rwhite
72
72
 
73
- if Thor::Shell::Basic.new.yes?('I will reinstall docker-sync for you using the above command (y/N)')
73
+ if Thor::Shell::Basic.new.yes?('I will reinstall unox for you using the above command (y/N)')
74
74
  system cmd1
75
75
  else
76
76
  raise('Please reinstall docker-sync yourself')
@@ -78,6 +78,13 @@ class UpgradeChecker
78
78
  end
79
79
  end
80
80
 
81
+ if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.4.0')
82
+ 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
83
+
84
+ unless Thor::Shell::Basic.new.yes?('Shall we continue - DID you read it - really :) ? (y/N)')
85
+ exit 1
86
+ end
87
+ end
81
88
 
82
89
  # update the upgrade_status
83
90
  @config.update! 'upgrade_status' => "#{UpgradeChecker.get_current_version}"
@@ -17,6 +17,8 @@ class Daemon < Thor
17
17
 
18
18
  desc 'start', 'Start docker-sync daemon'
19
19
  def start
20
+ say_status 'warning', 'Daemon mode is not the default, just use docker-sync start .. docker-sync-daemon is deprecated', :blue
21
+
20
22
  opt = options.dup
21
23
  opt.merge!(:daemon => true)
22
24
  sync = Sync.new([], opt)
@@ -25,6 +27,8 @@ class Daemon < Thor
25
27
 
26
28
  desc 'stop', 'Stop docker-sync daemon'
27
29
  def stop
30
+ say_status 'warning', 'Daemon mode is not the default, just use docker-sync start .. docker-sync-daemon is deprecated', :blue
31
+
28
32
  opt = options.dup
29
33
  opt.merge!(:daemon => true)
30
34
  sync = Sync.new([], opt)
@@ -33,6 +37,8 @@ class Daemon < Thor
33
37
 
34
38
  desc 'clean', 'Clean docker-sync daemon'
35
39
  def clean
40
+ say_status 'warning', 'Daemon mode is not the default, just use docker-sync start .. docker-sync-daemon is deprecated', :blue
41
+
36
42
  opt = options.dup
37
43
  opt.merge!(:daemon => true)
38
44
  sync = Sync.new([], opt)
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.0.pre.beta2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Mayer
@@ -192,9 +192,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
192
  version: '2.0'
193
193
  required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - ">"
195
+ - - ">="
196
196
  - !ruby/object:Gem::Version
197
- version: 1.3.1
197
+ version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
200
  rubygems_version: 2.4.5.1