Spread out methods in provision so subclass can override
This commit is contained in:
parent
9435b2782d
commit
1df4891371
|
@ -50,6 +50,15 @@ module Vagrant
|
||||||
next if env[:provision_types] && \
|
next if env[:provision_types] && \
|
||||||
!env[:provision_types].include?(type_map[p])
|
!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",
|
env[:ui].info(I18n.t("vagrant.actions.vm.provision.beginning",
|
||||||
:provisioner => p.class))
|
:provisioner => p.class))
|
||||||
|
|
||||||
|
@ -58,6 +67,4 @@ module Vagrant
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue