38fe100efe9b7d4df87746818bae508c4c00d4a6

Author
Ingo Renner <ingo.renner@gmail.com>
Committer
Ingo Renner <ingo.renner@gmail.com>
Date

Message

[FEATURE] Support Vagrant Share

Vagrant 1.5 introduced Vagrant Share to allow remote access to a Vagrant
environment. This adds support for the `share` and `connect` commands.

Diff

 1diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
 2index f9aef0880ad31d8b43224c8fa30a31929c19465c..7bdfb0f1c5f3da34a2475066fee4a0c2540906a5 100644
 3--- a/plugins/vagrant/_vagrant
 4+++ b/plugins/vagrant/_vagrant
 5@@ -6,6 +6,7 @@
 6 local -a _1st_arguments
 7 _1st_arguments=(
 8     'box:Box commands'
 9+    'connect:Connects to a shared, remote Vagrant environment'
10     'destroy:Destroys the vagrant environment'
11     'halt:Halts the currently running vagrant environment'
12     'init:[box_name] [box_url] Initializes current folder for Vagrant usage'
13@@ -14,6 +15,7 @@ _1st_arguments=(
14     'provision:Run the provisioner'
15     'reload:Reload the vagrant environment'
16     'resume:Resumes a suspend vagrant environment'
17+    'share:Shares the Vagrant environment and allows remote access'
18     'ssh:SSH into the currently running environment'
19     'ssh-config:outputs .ssh/config valid syntax for connecting to this environment via ssh.'
20     'status:Shows the status of the current Vagrant environment.'