vagrant-scp 0.5.6 → 0.5.7

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: e90e7f684ad5ccb7659a4d41bb98154b183afef5
4
- data.tar.gz: 2597f9e7b9378eb9ccb8e5deaaa89ec44b2dee43
3
+ metadata.gz: 13a2f13ade238a919f8650db344f93d95d2ef20c
4
+ data.tar.gz: 744c58836ad9cf0d1733ed985287a587bfe81234
5
5
  SHA512:
6
- metadata.gz: e637f46da050e569249a8daab8be2210e7fd512c7b5648714a1f867cd18c640e20fd7cf6e68bd863ec5aeb62fb09473fa930b08326f33beb3a9ee9c9a408e95f
7
- data.tar.gz: c054ca6a4877a49dcaf4ed89ff4565ed17f7fb94ce7a1b5ba4c46907371bc2c9f1cd32314f6fe4deedc1160cfc3ab6a5a76439d0f439cbcced6010d9a610cdc4
6
+ metadata.gz: b0619192bca8997fdadd97615391535b6363e83371fd8f7b0d726cb03a2796d88b52eec389c640f0509fbd4475b3113bef2da9da4116d6e6405448ac2b47512c
7
+ data.tar.gz: a6ac575942113b915a03bbabf0d94ffac346ccb475f5fdb1d10f82b66385987cc5af7099cc006de6234402cc6b9e427a54ec0b6b39e3df2a52ee1ff2b6c6f077
data/README.md CHANGED
@@ -24,5 +24,15 @@ Copying files out of the VM works in the same fashion
24
24
 
25
25
  That’s it!
26
26
 
27
+ ## Examples
28
+
29
+ If you have just one VM, you can copy files to the VM like this:
30
+
31
+ vagrant scp file_on_host.txt :file_on_vm.txt
32
+
33
+ And from the VM like this
34
+
35
+ vagrant scp :file_on_vm.txt file_on_host.txt
36
+
27
37
  ## Vagrant version
28
38
  We support Vagrant 1.7+. Note that Ubuntu 14.04 LTS ships version 1.4.3. You can get the deb file with the latest Vagrant [here](https://www.vagrantup.com/downloads.html).
@@ -24,12 +24,20 @@ module VagrantPlugins
24
24
  target = "'#{target_files}'"
25
25
  source = "#{user_at_host}:'#{source_files}'"
26
26
  end
27
+
28
+ if @ssh_info[:proxy_command]
29
+ proxy_command = "-o ProxyCommand='#{@ssh_info[:proxy_command]}'"
30
+ else
31
+ proxy_command = ''
32
+ end
33
+
27
34
  command = [
28
35
  "scp",
29
36
  "-r",
30
37
  "-o StrictHostKeyChecking=no",
31
38
  "-o UserKnownHostsFile=/dev/null",
32
39
  "-o port=#{@ssh_info[:port]}",
40
+ proxy_command,
33
41
  "-i '#{@ssh_info[:private_key_path][0]}'",
34
42
  source,
35
43
  target
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Scp
3
- VERSION = "0.5.6"
3
+ VERSION = "0.5.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-scp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Invernizzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-20 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler