Spread out methods in provision so subclass can override

This commit is contained in:
Mitchell Hashimoto 2013-02-06 16:14:59 -08:00
parent 9435b2782d
commit 1df4891371
1 changed files with 11 additions and 4 deletions

View File

@ -50,6 +50,15 @@ module Vagrant
next if env[:provision_types] && \
!env[:provision_types].include?(type_map[p])
run_provisioner(p)
end
end
end
# This is pulled out into a seperate method so that users can
# subclass and implement custom behavior if they'd like around
# this step.
def run_provisioner(p)
env[:ui].info(I18n.t("vagrant.actions.vm.provision.beginning",
:provisioner => p.class))
@ -59,5 +68,3 @@ module Vagrant
end
end
end
end
end