Added :chef_server provisioner shortcut
This commit is contained in:
parent
df2e80140d
commit
a4428cd201
|
@ -24,7 +24,8 @@ module Vagrant
|
|||
elsif provisioner.is_a?(Symbol)
|
||||
# We have a few hard coded provisioners for built-ins
|
||||
mapping = {
|
||||
:chef_solo => Provisioners::ChefSolo
|
||||
:chef_solo => Provisioners::ChefSolo,
|
||||
:chef_server => Provisioners::ChefServer
|
||||
}
|
||||
|
||||
provisioner_klass = mapping[provisioner]
|
||||
|
|
|
@ -97,6 +97,10 @@ class ProvisionActionTest < Test::Unit::TestCase
|
|||
provisioner_expectation(:chef_solo, Vagrant::Provisioners::ChefSolo)
|
||||
end
|
||||
|
||||
should "set :chef_server to the ChefServer provisioner" do
|
||||
provisioner_expectation(:chef_server, Vagrant::Provisioners::ChefServer)
|
||||
end
|
||||
|
||||
should "call prepare on the instance" do
|
||||
instance = mock("instance")
|
||||
instance.expects(:prepare).once
|
||||
|
|
Loading…
Reference in New Issue