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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 280d1189e39b23d3de749116bee0608f1e6f6801
4
- data.tar.gz: a7710f25c1ec28ada03ca58b410e6c6e1342d90f
3
+ metadata.gz: ee28970ed66881418c49f5751cd8547e6a04507e
4
+ data.tar.gz: 2b9208ef9e430aaff1f55f855caf2b429536d6dd
5
5
  SHA512:
6
- metadata.gz: 76946d07a235e897e57f37da811872644fef57bf89dc015fdc1077e06f19e4174dafc97f6387f5712fd8a9eb974a946c213e14ab8328eea8aa337aa5b1254478
7
- data.tar.gz: ba409ad56b3fe1189417f68a2929d13119467701178ca6dd02861da3f9929f5dd069829ce1ed324759a0aaf02ce825317467a29c9acefb4dbde340439d3942fc
6
+ metadata.gz: af5e35c0aa89756fe9822d4302d9878bf5d1385bdf7a7116fa462627678d36dcf404a7e13b7031e00a7ef8736ca190b3a465fcf393fc27d460032e0610ca3890
7
+ data.tar.gz: 05adb09c21bf4e365e3da5edcace5b9e39215a33376022556962e0f082421146c00ff1c8da66010376c8c920a709f9eeb7dfd504c9f6f2db854b099a81ca4d4e
@@ -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 commit
15
+ - Initial release
10
16
 
11
17
  IMPROVEMENTS:
12
18
 
@@ -1,6 +1,31 @@
1
1
  # Developer notes for vagrant-vboxmanage
2
2
 
3
- See docs in https://github.com/dergachev/vagrant-vbox-snapshot/blob/master/DEVNOTES.md
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
- Vagrant plugin that simplifies calling `VBoxManage cmd UUID`
3
+
4
+ [![Gem Version](https://badge.fury.io/rb/vagrant-vboxmanage.png)](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 `showvminfo`
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 `SPECIAL_COMMANDS.md`, the VM uuid will be inserted
18
- immediately after the command name. For example:
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
- # calls `VBoxManage showvminfo a0b76635-3c88-45ea-b26e-e9f442dc1f6e`
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 irregular commands like `guestproperty`.
43
+ * TODO: support for UUID substitution for `SPECIAL_COMMANDS.txt` commands
27
44
  * TODO: show VBoxManage-like usage help.
28
45
 
29
46
  ## Installation
@@ -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])
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VBoxManage
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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.md
52
+ - SPECIAL_COMMANDS.txt
53
53
  - Vagrantfile
54
54
  - lib/vagrant-vboxmanage.rb
55
55
  - lib/vagrant-vboxmanage/commands/root.rb