Reload uses the new 'boot' action

This commit is contained in:
Mitchell Hashimoto 2010-03-08 21:13:03 -08:00
parent 456fa731ef
commit f9fff05e37
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ module Vagrant
module VM
class Reload < Base
def prepare
steps = [ForwardPorts, SharedFolders, Start]
steps = [ForwardPorts, SharedFolders, Boot]
steps.unshift(Halt) if @runner.vm.running?
steps << Provision if Vagrant.config.chef.enabled

View File

@ -8,7 +8,7 @@ class ReloadActionTest < Test::Unit::TestCase
context "sub-actions" do
setup do
@default_order = [Vagrant::Actions::VM::ForwardPorts, Vagrant::Actions::VM::SharedFolders, Vagrant::Actions::VM::Start]
@default_order = [Vagrant::Actions::VM::ForwardPorts, Vagrant::Actions::VM::SharedFolders, Vagrant::Actions::VM::Boot]
@vm.stubs(:running?).returns(false)
end