vagrant-scp 0.4.1 → 0.4.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/README.md +5 -2
- data/lib/vagrant/scp/commands/scp.rb +4 -2
- 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: 1a3ced8e693ae3c7d9912f50c26f939967c77404
|
4
|
+
data.tar.gz: a89aaf4cb79ac41b3f4fb36663c01665c4c82bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e676ef1950a4693ffcbeff6602e1d9271584e76c2987e602c453fbb2d6fb9bbb46a411c3fde8acd9ccaad71467c8d81df4680ef013676186ecbb19b41d6a3f26
|
7
|
+
data.tar.gz: be3d0b4587ef821321c5c9059f53d07ff046a542bbd8418cfe2d99c8ac9efe8ab53eabdb8615fc57177ba46cc5f1265db09774f1b3abd8678df839e180d6bd97
|
data/README.md
CHANGED
@@ -16,10 +16,13 @@ If you have just a single Vagrant VM, you can copy files over like this:
|
|
16
16
|
|
17
17
|
If you have multiple VMs, you can specify it.
|
18
18
|
|
19
|
-
vagrant scp <some_local_file_or_dir>
|
19
|
+
vagrant scp <some_local_file_or_dir> [vm_name]:<somewhere_on_the_vm>
|
20
20
|
|
21
21
|
Copying files out of the VM works in the same fashion
|
22
22
|
|
23
|
-
vagrant scp
|
23
|
+
vagrant scp [vm_name]:<somewhere_on_the_vm> <some_local_file_or_dir>
|
24
24
|
|
25
25
|
That’s it!
|
26
|
+
|
27
|
+
## Vagrant version
|
28
|
+
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).
|
@@ -13,9 +13,10 @@ module VagrantPlugins
|
|
13
13
|
file_1, file_2 = parse_args()
|
14
14
|
return if file_2.nil?
|
15
15
|
# Extract host info
|
16
|
-
#
|
17
16
|
# We want to get the name of the vm, from a [host_1]:file_1 [host_2]:file_2 description
|
18
17
|
host = [file_1, file_2].map{|file_spec| file_spec.match(/^([^:]*):/)[1] rescue nil}.compact.first
|
18
|
+
# The default machine name for Vagrant is 'default'
|
19
|
+
host = 'default' if host.empty?
|
19
20
|
|
20
21
|
# Get the info about the target VM
|
21
22
|
with_target_vms(host) do |machine|
|
@@ -46,7 +47,8 @@ module VagrantPlugins
|
|
46
47
|
|
47
48
|
def parse_args
|
48
49
|
opts = OptionParser.new do |o|
|
49
|
-
o.banner = "Usage: vagrant scp <
|
50
|
+
o.banner = "Usage: vagrant scp <local_path> [vm_name]:<remote_path> \n"
|
51
|
+
o.banner += " vagrant scp [vm_name]:<remote_path> <local_path>"
|
50
52
|
o.separator ""
|
51
53
|
o.separator "Options:"
|
52
54
|
o.separator ""
|
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.4.
|
4
|
+
version: 0.4.2
|
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-
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|