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] && \
|
||||
!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
|
||||
|
|
Loading…
Reference in New Issue