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 +4 -4
- data/example/Vagrantfile +1 -1
- data/lib/syncer/command/rsync.rb +5 -3
- data/lib/syncer/command/rsync_auto.rb +7 -6
- data/lib/syncer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7fdc254868b13fb32d7132b9ba871a2fdd5ff55
|
4
|
+
data.tar.gz: 3f9a81c70b2199ee6a6aef0694a16e157c3845e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/syncer/command/rsync.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
-
|
59
|
-
|
60
|
-
|
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
|
data/lib/syncer/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|