Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/v0.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
frapposelli committed Apr 9, 2014
2 parents 12f590e + a0dc2cd commit d528f33
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
[Vagrant](http://www.vagrantup.com) provider for VMware vCloud Director®
=============

[Version 0.2.1](https://github.com/frapposelli/vagrant-vcloud/releases/tag/v0.2.1) has been released!
[Version 0.2.2](https://github.com/frapposelli/vagrant-vcloud/releases/tag/v0.2.2) has been released!
-------------

Please note that this software is still Alpha/Beta quality and is not recommended for production usage.

Right now a [Precise32](http://vagrant.tsugliani.fr/precise32.box) is available for use, or you can roll your own as you please, make sure to install VMware tools in it.

Features of Version 0.2.2 are:

- Fixed Issue #32 - Port Forwarding rules are deleted when Halting a VM.

Features of Version 0.2.1 are:

- Critical Bugfixes
Expand Down
10 changes: 7 additions & 3 deletions lib/vagrant-vcloud/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

module VagrantPlugins
module VCloud
# This module dictates the actions to be performed by Vagrant when called
# with a specific command
module Action
include Vagrant::Action::Builtin

Expand Down Expand Up @@ -69,9 +71,6 @@ def self.action_halt
b.use Call, IsPaused do |env, b2|
b2.use Resume if env[:result]
end
b.use Call, IsBridged do |env, b2|
b2.use UnmapPortForwardings unless env[:bridged_network]
end
b.use PowerOff
end
end
Expand Down Expand Up @@ -106,6 +105,11 @@ def self.action_destroy
b2.use Call, IsRunning do |env2, b3|
# If the VM is running, must power off
b3.use action_halt if env2[:result]
# Check if the network is bridged
b3.use Call, IsBridged do |env3, b4|
# if it's not, delete port forwardings.
b4.use UnmapPortForwardings unless env3[:bridged_network]
end
b3.use Destroy
end
else
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-vcloud/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module VagrantPlugins
module VCloud
VERSION = '0.2.1'
VERSION = '0.2.2'
end
end

0 comments on commit d528f33

Please sign in to comment.