vagrant-scp 0.4.1 → 0.4.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: bc3bea575876f70391d7b89969639056f69b237f
4
- data.tar.gz: 8a58ef724e2858a623870623eed08fafd676f5a1
3
+ metadata.gz: 1a3ced8e693ae3c7d9912f50c26f939967c77404
4
+ data.tar.gz: a89aaf4cb79ac41b3f4fb36663c01665c4c82bbd
5
5
  SHA512:
6
- metadata.gz: 5fe3e09596038536f8f101a9514757aba825dc52b7c636ae5fcb6e1e18f708d8958ed3327d8ccd7eaa590bbdc7551db8ce7d1b18f17d6cee2cb806b46da2a234
7
- data.tar.gz: 16e42fdbf34ff76b6c3fc80ee6aad9681cf6ce3ee157efe84c5d571e2f994057c6278196056ac7f99c46af17375eba2e78eaae828428af8b7e6bcec320d400f2
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> <vm_name:somewhere_on_the_vm>
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 <vm_name:somewhere_on_the_vm> <some_local_file_or_dir>
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 <files> <target> [vm_name]"
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 ""
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Scp
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
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.4.1
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-03-13 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler