Reload uses the new 'boot' action
This commit is contained in:
parent
456fa731ef
commit
f9fff05e37
|
@ -3,7 +3,7 @@ module Vagrant
|
||||||
module VM
|
module VM
|
||||||
class Reload < Base
|
class Reload < Base
|
||||||
def prepare
|
def prepare
|
||||||
steps = [ForwardPorts, SharedFolders, Start]
|
steps = [ForwardPorts, SharedFolders, Boot]
|
||||||
steps.unshift(Halt) if @runner.vm.running?
|
steps.unshift(Halt) if @runner.vm.running?
|
||||||
steps << Provision if Vagrant.config.chef.enabled
|
steps << Provision if Vagrant.config.chef.enabled
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ class ReloadActionTest < Test::Unit::TestCase
|
||||||
|
|
||||||
context "sub-actions" do
|
context "sub-actions" do
|
||||||
setup 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)
|
@vm.stubs(:running?).returns(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue