vagrant-syncer 1.0.1 → 1.0.2
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 +13 -6
- data/lib/syncer/config.rb +16 -8
- data/lib/syncer/syncers/rsync.rb +2 -2
- data/lib/syncer/version.rb +1 -1
- data/vagrant-syncer.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd47298b3567673c6995d30964b20fa04a75ec5
|
4
|
+
data.tar.gz: 8e90c5516f9fae57e14075c575026207861fc3da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9751e15a8daa2674c6c2a52332fafcd59aa1241d6291ffe76536aba6def684a01a7ae763dbfb270a64ff5f0140223c3459028cef0b93a5bda4f7f831ad700fd
|
7
|
+
data.tar.gz: 4778d39d2bbb111510d3470ee6f76619223a4a40dc5d26035f07e245e9cbe7ad9dbbe550d5290ead1817f1f81cb36e247a219413b7c6e27a992e774657cc3573
|
data/example/Vagrantfile
CHANGED
@@ -8,7 +8,7 @@ Vagrant.configure(2) do |config|
|
|
8
8
|
config.vm.box_check_update = false
|
9
9
|
config.vbguest.auto_update = false if Vagrant.has_plugin?("vagrant-vbguest")
|
10
10
|
|
11
|
-
config.vm.network 'private_network',
|
11
|
+
config.vm.network 'private_network', type: 'dhcp'
|
12
12
|
|
13
13
|
config.vm.synced_folder '.', '/vagrant', disabled: true
|
14
14
|
|
@@ -47,17 +47,24 @@ Vagrant.configure(2) do |config|
|
|
47
47
|
# Default: false
|
48
48
|
config.syncer.show_events = false
|
49
49
|
|
50
|
-
# Optional SSH arguments passed to rsync
|
51
|
-
#
|
50
|
+
# Optional SSH arguments passed to rsync, e.g. to lower CPU load
|
51
|
+
#
|
52
|
+
# If not overridden here, the defaults on all platforms are:
|
53
|
+
# -o StrictHostKeyChecking=no
|
54
|
+
# -o IdentitiesOnly=true
|
55
|
+
# -o UserKnownHostsFile=/dev/null
|
56
|
+
#
|
57
|
+
# On non-Windows operating systems, the defaults also include the following:
|
58
|
+
# -o ControlMaster=auto
|
59
|
+
# -o ControlPath=<path_in_temp>
|
60
|
+
# -o ControlPersist=10m
|
61
|
+
|
52
62
|
config.syncer.ssh_args = [
|
53
63
|
'-o StrictHostKeyChecking=no',
|
54
64
|
'-o IdentitiesOnly=true',
|
55
65
|
'-o UserKnownHostsFile=/dev/null',
|
56
66
|
'-c arcfour,blowfish-cbc',
|
57
67
|
'-o Compression=no',
|
58
|
-
'-o ControlMaster=auto',
|
59
|
-
"-o ControlPath=#{File.join(Dir.tmpdir, "ssh.#{rand(1000)}")}",
|
60
|
-
'-o ControlPersist=10m',
|
61
68
|
'-x'
|
62
69
|
]
|
63
70
|
end
|
data/lib/syncer/config.rb
CHANGED
@@ -15,14 +15,22 @@ module Vagrant
|
|
15
15
|
@interval = 0.2 if @interval == UNSET_VALUE || @interval <= 0.2
|
16
16
|
@run_on_startup = true if @run_on_startup == UNSET_VALUE
|
17
17
|
@show_events = false if @show_events == UNSET_VALUE
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
|
19
|
+
if @ssh_args = UNSET_VALUE
|
20
|
+
@ssh_args = [
|
21
|
+
'-o StrictHostKeyChecking=no',
|
22
|
+
'-o IdentitiesOnly=true',
|
23
|
+
'-o UserKnownHostsFile=/dev/null',
|
24
|
+
]
|
25
|
+
|
26
|
+
unless Vagrant::Util::Platform.windows?
|
27
|
+
@ssh_args += [
|
28
|
+
'-o ControlMaster=auto',
|
29
|
+
"-o ControlPath=#{File.join(Dir.tmpdir, "ssh.#{rand(1000)}")}",
|
30
|
+
'-o ControlPersist=10m'
|
31
|
+
]
|
32
|
+
end
|
33
|
+
end
|
26
34
|
end
|
27
35
|
|
28
36
|
end
|
data/lib/syncer/syncers/rsync.rb
CHANGED
@@ -87,9 +87,9 @@ module Vagrant
|
|
87
87
|
abs_host_path = File.expand_path(host_dir, @machine_path)
|
88
88
|
abs_host_path = Vagrant::Util::Platform.fs_real_path(abs_host_path).to_s
|
89
89
|
|
90
|
-
# Rsync on Windows expects
|
90
|
+
# Rsync on Windows expects relative paths
|
91
91
|
if Vagrant::Util::Platform.windows?
|
92
|
-
abs_host_path =
|
92
|
+
abs_host_path = abs_host_path.gsub(@machine_path + '/', '')
|
93
93
|
end
|
94
94
|
|
95
95
|
# Ensure path ends with '/' to prevent creating directory inside directory
|
data/lib/syncer/version.rb
CHANGED
data/vagrant-syncer.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Anssi Syrjäsalo"]
|
10
10
|
spec.email = ["anssi.syrjasalo@gmail.com"]
|
11
11
|
spec.summary = %q{Optimized Vagrant rsync-auto}
|
12
|
-
spec.description = %q{
|
12
|
+
spec.description = %q{Optimized Vagrant rsync(-auto) plugin for large file hierarchies.}
|
13
13
|
spec.homepage = "https://github.com/asyrjasalo/vagrant-syncer"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
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.0.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2016-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,8 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
42
|
-
and (c)leaner rsync-auto.
|
41
|
+
description: Optimized Vagrant rsync(-auto) plugin for large file hierarchies.
|
43
42
|
email:
|
44
43
|
- anssi.syrjasalo@gmail.com
|
45
44
|
executables:
|