vagrant-commands 0.2.0 → 0.2.1
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/Gemfile.lock +18 -16
- data/README.md +34 -3
- data/lib/vagrant-commands/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99bffecdcfbe1d9286bee3981c1454fdbb557b86bbbc7dce372d9b8e52c4b321
|
4
|
+
data.tar.gz: eee026b56f8e3b102a89e23bf72df4c0ab2a0db3427bea4afdc893c7d550aee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef42b0aa2d38b8fa13a1816f6061d1750d22229769bf225c426d9453f73a9f41d056fc8cd8e632c84ceda50052ef1324185dfdaa7c55b8ea5c942fddd771d755
|
7
|
+
data.tar.gz: ee72cd9f39ace1e486608c12214c21465c2032bcf8084d69c2662b5dd3a5a7650a5652c0019f33c3a99ac56bf30f550d2e12fcace9a81567ca0e66dc8df0a425
|
data/Gemfile.lock
CHANGED
@@ -28,21 +28,22 @@ GIT
|
|
28
28
|
PATH
|
29
29
|
remote: .
|
30
30
|
specs:
|
31
|
-
vagrant-commands (0.1
|
31
|
+
vagrant-commands (0.2.1)
|
32
32
|
|
33
33
|
GEM
|
34
34
|
remote: https://rubygems.org/
|
35
35
|
specs:
|
36
36
|
bcrypt_pbkdf (1.0.1-x64-mingw32)
|
37
|
-
builder (3.2.
|
37
|
+
builder (3.2.4)
|
38
38
|
childprocess (0.6.3)
|
39
39
|
ffi (~> 1.0, >= 1.0.11)
|
40
|
-
concurrent-ruby (1.1.
|
40
|
+
concurrent-ruby (1.1.6)
|
41
41
|
domain_name (0.5.20190701)
|
42
42
|
unf (>= 0.0.5, < 1.0.0)
|
43
43
|
ed25519 (1.2.4)
|
44
|
+
erubi (1.9.0)
|
44
45
|
erubis (2.7.0)
|
45
|
-
ffi (1.
|
46
|
+
ffi (1.12.2-x64-mingw32)
|
46
47
|
gssapi (1.3.0)
|
47
48
|
ffi (>= 1.0.1)
|
48
49
|
gyoku (1.3.1)
|
@@ -62,10 +63,10 @@ GEM
|
|
62
63
|
logging (2.2.2)
|
63
64
|
little-plugger (~> 1.1)
|
64
65
|
multi_json (~> 1.10)
|
65
|
-
mime-types (3.
|
66
|
+
mime-types (3.3.1)
|
66
67
|
mime-types-data (~> 3.2015)
|
67
|
-
mime-types-data (3.2019.
|
68
|
-
multi_json (1.
|
68
|
+
mime-types-data (3.2019.1009)
|
69
|
+
multi_json (1.14.1)
|
69
70
|
net-scp (1.2.1)
|
70
71
|
net-ssh (>= 2.6.5)
|
71
72
|
net-sftp (2.1.2)
|
@@ -75,7 +76,7 @@ GEM
|
|
75
76
|
nori (2.6.0)
|
76
77
|
rake (10.5.0)
|
77
78
|
rb-fsevent (0.10.3)
|
78
|
-
rb-inotify (0.10.
|
79
|
+
rb-inotify (0.10.1)
|
79
80
|
ffi (~> 1.0)
|
80
81
|
rb-kqueue (0.2.5)
|
81
82
|
ffi (>= 0.5.0)
|
@@ -86,27 +87,28 @@ GEM
|
|
86
87
|
netrc (~> 0.8)
|
87
88
|
ruby_dep (1.3.1)
|
88
89
|
rubyntlm (0.6.2)
|
89
|
-
rubyzip (1.2.
|
90
|
+
rubyzip (1.2.4)
|
90
91
|
unf (0.1.4)
|
91
92
|
unf_ext
|
92
|
-
unf_ext (0.0.7.
|
93
|
-
vagrant_cloud (2.0.
|
93
|
+
unf_ext (0.0.7.7-x64-mingw32)
|
94
|
+
vagrant_cloud (2.0.3)
|
94
95
|
rest-client (~> 2.0.2)
|
95
96
|
wdm (0.1.1)
|
96
|
-
winrm (2.3.
|
97
|
+
winrm (2.3.4)
|
97
98
|
builder (>= 2.1.2)
|
98
|
-
|
99
|
+
erubi (~> 1.8)
|
99
100
|
gssapi (~> 1.2)
|
100
101
|
gyoku (~> 1.0)
|
101
102
|
httpclient (~> 2.2, >= 2.2.0.2)
|
102
103
|
logging (>= 1.6.1, < 3.0)
|
103
104
|
nori (~> 2.0)
|
104
105
|
rubyntlm (~> 0.6.0, >= 0.6.1)
|
105
|
-
winrm-elevated (1.
|
106
|
+
winrm-elevated (1.2.1)
|
107
|
+
erubi (~> 1.8)
|
106
108
|
winrm (~> 2.0)
|
107
109
|
winrm-fs (~> 1.0)
|
108
|
-
winrm-fs (1.3.
|
109
|
-
|
110
|
+
winrm-fs (1.3.3)
|
111
|
+
erubi (~> 1.8)
|
110
112
|
logging (>= 1.6.1, < 3.0)
|
111
113
|
rubyzip (~> 1.1)
|
112
114
|
winrm (~> 2.0)
|
data/README.md
CHANGED
@@ -2,6 +2,37 @@
|
|
2
2
|
Vagrant plugin for custom console commands
|
3
3
|
|
4
4
|
## Overview
|
5
|
-
Vagrant Commands allows you to define arbitrary subcommands for your
|
6
|
-
|
7
|
-
|
5
|
+
Vagrant Commands allows you to define arbitrary subcommands for your Vagrant development environments, allowing you to execute scripts on your Vagrant guests using custom interfaces defined in YAML.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
To install, run `vagrant plugin install vagrant-commands`
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
The plugin looks for a **vagrant-commands.yml** file in the same directory as your vagrantfile. An example **vagrant-commands.yml** file might be:
|
12
|
+
|
13
|
+
commands:
|
14
|
+
- name: hello
|
15
|
+
synopsis: say "Hello, World!"
|
16
|
+
machine: default
|
17
|
+
exec:
|
18
|
+
command: echo "Hello, World!"
|
19
|
+
|
20
|
+
- name: restart
|
21
|
+
synopsis: restart Apache service
|
22
|
+
machine: default
|
23
|
+
exec:
|
24
|
+
command: systemctl restart httpd.service
|
25
|
+
|
26
|
+
Commands defined in **vagrant-commands.yml** will be shown in the Vagrant help screen like all other commands.
|
27
|
+
|
28
|
+
## Limitations
|
29
|
+
This plugin has only been confirmed working with environments that use a single virtual machine. Basic support for multi-machine environments has been implemented but has not been confirmed working.
|
30
|
+
|
31
|
+
Because this plugin currently relies on SSH to execute commands, it is not compatible with Windows guests.
|
32
|
+
|
33
|
+
## Going Forward
|
34
|
+
I'd like to make additions and improvements to this plugin in the future. Some things I'd like to implement sometime soon, in no particular order:
|
35
|
+
* Test and improve functionality for environments with multiple machines
|
36
|
+
* Improve compatibility with Windows guests by using WinRM instead of SSH
|
37
|
+
* Allow commands to be defined in **vagrant-commands.yml** that are executed locally instead of in the guest
|
38
|
+
* Allow configuration file path (e.g. **vagrant-commands.yml**) to be changed in vagrantfile
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe D'Amore
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|