vagrant-syncer 1.0.0 → 1.0.1

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: 78956c78a675ea34cb1458cf9a2961a6e1cffe14
4
- data.tar.gz: 16a0bc9b8a5a792ea5fda9ee0fc3e095546b4036
3
+ metadata.gz: 6f6e700c1878ab046b3eed7a6a585ed689a038ec
4
+ data.tar.gz: 27a802c416aa8cb32300002279266e5b2de8997d
5
5
  SHA512:
6
- metadata.gz: 69bb83ca7c7e906fffde1dcddea27fd0608a0a945f0f70c6c7179b65fae0548d1bbf950d8a282709881032ad4842887f5fb498aba5655c39c545132bc3c50f04
7
- data.tar.gz: 479e505688e4886a3709c37586add4a2d1f34cfa9c9f14f4819491069edad763a6227167ce1fd2ef16757a3b5a6855fd8f45b3921efb4d8c6cf46f9602a8421e
6
+ metadata.gz: a84d6f1baadd8b25ef6c8b36f9bffcb03ac629815c6f7dd07ed276f144eb7c40001a1c39ef62bbe26dac67412c29a9cae5c62494f4f99b71a10ea1cd91363db6
7
+ data.tar.gz: 378228b18aa94eb7558aeb4c451f341aebacfedd59ca3c5ef52b581fce88ce59877180807a359065bcda58c2de3c21a79ed64858d308ace732d7bd8f97731538
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  group :development do
7
- gem "vagrant", git: "https://github.com/mitchellh/vagrant.git", tag: 'v1.7.4'
7
+ gem "vagrant", git: "https://github.com/mitchellh/vagrant.git", tag: 'v1.8.1'
8
8
  end
9
9
 
10
10
  group :plugins do
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2015 Anssi Syrjäsalo
3
+ Copyright (c) 2015-2016 Anssi Syrjäsalo
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
21
+ THE SOFTWARE.
data/example/Vagrantfile CHANGED
@@ -27,7 +27,6 @@ Vagrant.configure(2) do |config|
27
27
  "*.not",
28
28
  ".git"
29
29
  ],
30
- rsync__rsync_path: 'rsync',
31
30
  rsync__verbose: true
32
31
 
33
32
  config.ssh.username = 'vagrant'
@@ -56,6 +55,9 @@ Vagrant.configure(2) do |config|
56
55
  '-o UserKnownHostsFile=/dev/null',
57
56
  '-c arcfour,blowfish-cbc',
58
57
  '-o Compression=no',
58
+ '-o ControlMaster=auto',
59
+ "-o ControlPath=#{File.join(Dir.tmpdir, "ssh.#{rand(1000)}")}",
60
+ '-o ControlPersist=10m',
59
61
  '-x'
60
62
  ]
61
63
  end
@@ -21,4 +21,4 @@ module Vagrant
21
21
 
22
22
  end
23
23
  end
24
- end
24
+ end
@@ -10,7 +10,7 @@ module Vagrant
10
10
  def execute
11
11
  with_target_vms do |machine|
12
12
  machine = Machine.new(machine)
13
- # machine.full_sync
13
+ machine.full_sync
14
14
  machine.listen
15
15
  end
16
16
  0
@@ -19,4 +19,4 @@ module Vagrant
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
data/lib/syncer/config.rb CHANGED
@@ -18,7 +18,10 @@ module Vagrant
18
18
  @ssh_args = [
19
19
  '-o StrictHostKeyChecking=no',
20
20
  '-o IdentitiesOnly=true',
21
- '-o UserKnownHostsFile=/dev/null'
21
+ '-o UserKnownHostsFile=/dev/null',
22
+ '-o ControlMaster=auto',
23
+ "-o ControlPath=#{File.join(Dir.tmpdir, "ssh.#{rand(1000)}")}",
24
+ '-o ControlPersist=10m'
22
25
  ] if @ssh_args == UNSET_VALUE
23
26
  end
24
27
 
@@ -119,7 +119,8 @@ module Vagrant
119
119
  end
120
120
 
121
121
  def parse_rsync_args(rsync_args=nil, rsync_path=nil)
122
- rsync_args ||= ["--archive", "--delete", "--compress", "--copy-links", "--verbose"]
122
+ rsync_args ||= ["--archive", "--delete", "--compress", "--copy-links",
123
+ "--verbose"]
123
124
 
124
125
  # This is the default rsync output unless overridden by user
125
126
  rsync_args.unshift("--out-format=%L%n")
@@ -158,4 +159,4 @@ module Vagrant
158
159
  end
159
160
  end
160
161
  end
161
- end
162
+ end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Syncer
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
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.0.0
4
+ version: 1.0.1
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: 2015-11-20 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler