vagrant-syncer 1.1.4 → 1.1.5

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: 0b2599980f3cc171a2f90c2764aaf9cd56023df7
4
- data.tar.gz: bb223445e8a5591d4ec3f07de78099d418893e12
3
+ metadata.gz: a7fdc254868b13fb32d7132b9ba871a2fdd5ff55
4
+ data.tar.gz: 3f9a81c70b2199ee6a6aef0694a16e157c3845e1
5
5
  SHA512:
6
- metadata.gz: 8bda545467287e31e4db055e11335f317cb794165aca3548df95b9ecf6dc947411b0f13d68f8fc66b543a7ba80577544acddd2c2d86d4a5bcc1534805e635455
7
- data.tar.gz: 46cb867029c39c622796893405d9151452390bc9bdee4b5fcaffc70c2434125f662f4ecde27d7c1efedbcf2d59ea0545aa2f8d6b646c75de00f88f5f0b1de645
6
+ metadata.gz: 4d4a359df5c54c51c4b6e1ee4b4c1340f16d254c7175b9a2b40c4e66a3e4561b7621256d0d0dace5685a60a5c5ce1bf34d2f684d20bd0aa18fcbbc49c1be2001
7
+ data.tar.gz: 79ca89f71059370cc77de670eea6ddbde4bea7cfb691ab77df9b11c68d525d38ad47c59600b33f31469bbd6f45382fb486e3e8df13902b5aca779b5ff694af73
data/example/Vagrantfile CHANGED
@@ -9,7 +9,7 @@ Vagrant.configure(2) do |config|
9
9
  config.vbguest.auto_update = false if Vagrant.has_plugin?("vagrant-vbguest")
10
10
 
11
11
  config.vm.define 'master', primary: true
12
- config.vm.define 'slave'
12
+ config.vm.define 'slave', autostart: false
13
13
 
14
14
  config.vm.network 'private_network', type: 'dhcp'
15
15
 
@@ -27,7 +27,7 @@ module Vagrant
27
27
 
28
28
  # Parse the options and return if we don't have any target.
29
29
  argv = parse_options(opts)
30
- return if !argv
30
+ return unless argv
31
31
 
32
32
  # Go through each machine and perform full sync.
33
33
  with_target_vms(argv) do |machine|
@@ -43,11 +43,13 @@ module Vagrant
43
43
  end
44
44
  end
45
45
 
46
- next if synced_folders(machine)[:rsync].empty?
46
+ next unless machine.communicate.ready?
47
+ next unless synced_folders(machine)[:rsync]
48
+
47
49
  Machine.new(machine).full_sync
48
50
  end
49
51
 
50
- 0
52
+ return 0
51
53
  end
52
54
  end
53
55
  end
@@ -35,7 +35,7 @@ module Vagrant
35
35
 
36
36
  # Parse the options and return if we don't have any target.
37
37
  argv = parse_options(opts)
38
- return if !argv
38
+ return unless argv
39
39
 
40
40
  listener_threads = []
41
41
 
@@ -53,15 +53,16 @@ module Vagrant
53
53
  end
54
54
  end
55
55
 
56
+ next unless machine.communicate.ready?
56
57
  next unless synced_folders(machine)[:rsync]
57
58
 
58
- if machine.ssh_info
59
- machine = Machine.new(machine, options[:poll])
60
- machine.full_sync
61
- listener_threads << Thread.new { machine.listen }
62
- end
59
+ machine = Machine.new(machine, options[:poll])
60
+ machine.full_sync
61
+ listener_threads << Thread.new { machine.listen }
63
62
  end
64
63
  listener_threads.each { |t| t.join }
64
+
65
+ return 0
65
66
  end
66
67
  end
67
68
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Syncer
3
- VERSION = "1.1.4"
3
+ VERSION = "1.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-syncer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anssi Syrjäsalo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler