Added :chef_server provisioner shortcut

This commit is contained in:
Mitchell Hashimoto 2010-03-10 21:58:51 -08:00
parent df2e80140d
commit a4428cd201
2 changed files with 6 additions and 1 deletions

View File

@ -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]

View File

@ -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