vagrant-scp 0.5.6 → 0.5.7
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/README.md +10 -0
- data/lib/vagrant/scp/commands/scp.rb +8 -0
- data/lib/vagrant/scp/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: 13a2f13ade238a919f8650db344f93d95d2ef20c
|
4
|
+
data.tar.gz: 744c58836ad9cf0d1733ed985287a587bfe81234
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/vagrant/scp/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|