Fixed `vagrant resume` to properly resume a suspend VM [closes GH-122]

This commit is contained in:
Mitchell Hashimoto 2010-07-29 20:26:02 -07:00
parent 8ea6d2bc40
commit 96ea715e30
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
## 0.5.1 (unreleased)
- Fixed `vagrant resume` to properly resume a suspended VM. [GH-122]
- Fixed `halt`, `destroy`, `reload` to where they failed if the VM was
in a saved state. [GH-123]
- Added `config.chef.recipe_url` which allows you to specify a URL to

View File

@ -9,7 +9,7 @@ module Vagrant
def call(env)
if env["vm"].vm.saved?
env.logger.info "Resuming suspended VM..."
env["actions"].run(:start)
env["actions"].run(Boot)
end
@app.call(env)

View File

@ -19,7 +19,7 @@ class ResumeVMActionTest < Test::Unit::TestCase
@internal_vm.expects(:saved?).returns(true)
seq = sequence("seq")
@env.env.actions.expects(:run).with(:start).once.in_sequence(seq)
@env.env.actions.expects(:run).with(Vagrant::Action::VM::Boot).once.in_sequence(seq)
@app.expects(:call).with(@env).once.in_sequence(seq)
@instance.call(@env)
end