vagrant-vboxmanage 0.0.1 → 0.0.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/CHANGELOG.md +7 -1
- data/DEVNOTES.md +26 -1
- data/README.md +25 -8
- data/{SPECIAL_COMMANDS.md → SPECIAL_COMMANDS.txt} +0 -0
- data/lib/vagrant-vboxmanage/commands/root.rb +1 -0
- data/lib/vagrant-vboxmanage/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: ee28970ed66881418c49f5751cd8547e6a04507e
|
4
|
+
data.tar.gz: 2b9208ef9e430aaff1f55f855caf2b429536d6dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af5e35c0aa89756fe9822d4302d9878bf5d1385bdf7a7116fa462627678d36dcf404a7e13b7031e00a7ef8736ca190b3a465fcf393fc27d460032e0610ca3890
|
7
|
+
data.tar.gz: 05adb09c21bf4e365e3da5edcace5b9e39215a33376022556962e0f082421146c00ff1c8da66010376c8c920a709f9eeb7dfd504c9f6f2db854b099a81ca4d4e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [0.0.2](https://github.com/dergachev/vagrant-vbox-snapshot/compare/v0.0.1...v0.0.2) (Sep ??, 2013)
|
2
|
+
|
3
|
+
IMPROVEMENTS:
|
4
|
+
|
5
|
+
- Fix error in :power_off detection logic (See commit 0e8cc5e)
|
6
|
+
|
1
7
|
## [0.0.1](https://github.com/dergachev/vagrant-vbox-snapshot/compare/v0.0.0...v0.0.1) (Sep 23, 2013)
|
2
8
|
|
3
9
|
BACKWARDS INCOMPATIBILITIES:
|
@@ -6,7 +12,7 @@ BACKWARDS INCOMPATIBILITIES:
|
|
6
12
|
|
7
13
|
FEATURES:
|
8
14
|
|
9
|
-
- Initial
|
15
|
+
- Initial release
|
10
16
|
|
11
17
|
IMPROVEMENTS:
|
12
18
|
|
data/DEVNOTES.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
# Developer notes for vagrant-vboxmanage
|
2
2
|
|
3
|
-
|
3
|
+
## Packaging a gem
|
4
|
+
|
5
|
+
See https://github.com/dergachev/vagrant-vbox-snapshot/blob/master/DEVNOTES.md#pushing-out-a-new-release-of-the-gem
|
6
|
+
|
7
|
+
In the future, also consider this workflow:
|
8
|
+
|
9
|
+
```
|
10
|
+
# build the gem locally
|
11
|
+
vim lib/vagrant-vboxmanage/version.rb +/VERSION # increment version counter, eg to 0.0.3
|
12
|
+
rake build # package the gem into ./pkg/vagrant-vboxmanage-0.0.3.gem
|
13
|
+
|
14
|
+
# install and test the gem locally
|
15
|
+
vagrant plugin uninstall vagrant-vboxmanage
|
16
|
+
vagrant plugin install ./pkg/vagrant-vboxmanage-0.0.3.gem # FIX VERSION NUMBER!!
|
17
|
+
cd ~/code/screengif
|
18
|
+
vagrant vboxmanage showvminfo # works...
|
19
|
+
|
20
|
+
# commit and publish the gem
|
21
|
+
vim CHANGELOG.md # add v0.0.3 details
|
22
|
+
git commit -m "Publishing v0.0.3" CHANGELOG.md lib/vagrant-vboxmanage/version.rb
|
23
|
+
|
24
|
+
rake release
|
25
|
+
git push --tags
|
26
|
+
```
|
27
|
+
|
28
|
+
See http://asciicasts.com/episodes/245-new-gem-with-bundler
|
4
29
|
|
5
30
|
## Resources
|
6
31
|
|
data/README.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
vagrant-vboxmanage
|
2
2
|
==================================
|
3
|
-
|
3
|
+
|
4
|
+
[](http://badge.fury.io/rb/vagrant-vboxmanage)
|
5
|
+
|
6
|
+
Vagrant plugin that simplifies calling `VBoxManage` on your Vagrant VM, by automatically injecting
|
7
|
+
the machine uuid argument into the right spot. So instead of this:
|
8
|
+
|
9
|
+
```
|
10
|
+
VBoxManage showvminfo `cat .vagrant/machines/default/virtualbox/id` --details
|
11
|
+
```
|
12
|
+
|
13
|
+
You can just do this:
|
14
|
+
|
15
|
+
```
|
16
|
+
vagrant vboxmanage showvminfo --details
|
17
|
+
```
|
4
18
|
|
5
19
|
## Usage
|
6
20
|
|
@@ -10,20 +24,23 @@ The following commands are added by this plugin:
|
|
10
24
|
|
11
25
|
Where:
|
12
26
|
|
13
|
-
* `<subcommand>` is the VBoxManage subcommand, eg
|
14
|
-
* See http://www.virtualbox.org/manual/ch08.html
|
27
|
+
* `<subcommand>` is the [VBoxManage subcommand](http://www.virtualbox.org/manual/ch08.html), eg *showvminfo*
|
15
28
|
* `[vm-name]` is the VM name; must be specified if multiple VMs are defined in Vagrantfile
|
16
29
|
|
17
|
-
For all commands except those listed in
|
18
|
-
|
30
|
+
For all VBoxManage commands except those listed in [SPECIAL_COMMANDS.txt](https://github.com/dergachev/vagrant-vboxmanage/blob/master/SPECIAL_COMMANDS.txt), the VM uuid will be inserted immediately after the command name.
|
31
|
+
|
32
|
+
Examples:
|
19
33
|
|
20
|
-
#
|
21
|
-
vagrant vboxmanage showvminfo --details
|
34
|
+
# in case of a single VM environment
|
35
|
+
vagrant vboxmanage showvminfo --details
|
36
|
+
|
37
|
+
# in case of multi-VM environment
|
38
|
+
vagrant vboxmanage mysql01 showvminfo --details
|
22
39
|
|
23
40
|
## Caveats
|
24
41
|
|
25
42
|
* Only minimally tested.
|
26
|
-
* TODO: support for UUID substitution for
|
43
|
+
* TODO: support for UUID substitution for `SPECIAL_COMMANDS.txt` commands
|
27
44
|
* TODO: show VBoxManage-like usage help.
|
28
45
|
|
29
46
|
## Installation
|
File without changes
|
@@ -34,6 +34,7 @@ module VagrantPlugins
|
|
34
34
|
with_target_vms(argv, single_target: true) do |machine|
|
35
35
|
if machine.state.id == :not_created
|
36
36
|
machine.env.ui.error("Target machine is not created, unable to run VBoxManage.")
|
37
|
+
return 1
|
37
38
|
end
|
38
39
|
|
39
40
|
if vboxmanage_commands_standard.include?(options[:command])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vboxmanage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dergachev
|
@@ -49,7 +49,7 @@ files:
|
|
49
49
|
- Gemfile
|
50
50
|
- README.md
|
51
51
|
- Rakefile
|
52
|
-
- SPECIAL_COMMANDS.
|
52
|
+
- SPECIAL_COMMANDS.txt
|
53
53
|
- Vagrantfile
|
54
54
|
- lib/vagrant-vboxmanage.rb
|
55
55
|
- lib/vagrant-vboxmanage/commands/root.rb
|