vagrant-syncer 1.0.1 → 1.0.2

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: 6f6e700c1878ab046b3eed7a6a585ed689a038ec
4
- data.tar.gz: 27a802c416aa8cb32300002279266e5b2de8997d
3
+ metadata.gz: 3cd47298b3567673c6995d30964b20fa04a75ec5
4
+ data.tar.gz: 8e90c5516f9fae57e14075c575026207861fc3da
5
5
  SHA512:
6
- metadata.gz: a84d6f1baadd8b25ef6c8b36f9bffcb03ac629815c6f7dd07ed276f144eb7c40001a1c39ef62bbe26dac67412c29a9cae5c62494f4f99b71a10ea1cd91363db6
7
- data.tar.gz: 378228b18aa94eb7558aeb4c451f341aebacfedd59ca3c5ef52b581fce88ce59877180807a359065bcda58c2de3c21a79ed64858d308ace732d7bd8f97731538
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', ip: '10.10.10.10'
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 for lower CPU load
51
- # Default: -o StrictHostKeyChecking=no, -o IdentitiesOnly=true, -o UserKnownHostsFile=/dev/null
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
- @ssh_args = [
19
- '-o StrictHostKeyChecking=no',
20
- '-o IdentitiesOnly=true',
21
- '-o UserKnownHostsFile=/dev/null',
22
- '-o ControlMaster=auto',
23
- "-o ControlPath=#{File.join(Dir.tmpdir, "ssh.#{rand(1000)}")}",
24
- '-o ControlPersist=10m'
25
- ] if @ssh_args == UNSET_VALUE
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
@@ -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 Cygwin style paths
90
+ # Rsync on Windows expects relative paths
91
91
  if Vagrant::Util::Platform.windows?
92
- abs_host_path = Vagrant::Util::Platform.cygwin_path(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
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Syncer
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -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{A Vagrant synced folder plugin with watchers for large file hierarchies and (c)leaner rsync-auto.}
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.1
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-01-08 00:00:00.000000000 Z
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: A Vagrant synced folder plugin with watchers for large file hierarchies
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: