core: cleaner output of what provisioner is running if named

This commit is contained in:
Mitchell Hashimoto 2014-10-23 18:47:03 -07:00
parent 97f9948fce
commit 6ea8dc8e20
2 changed files with 7 additions and 1 deletions

View File

@ -109,9 +109,14 @@ module Vagrant
# Don't run if sentinel is around and we're not always running
next if !provision_enabled && options[:run] != :always
name = type_name
if options[:name]
name = "#{options[:name]} (#{type_name})"
end
env[:ui].info(I18n.t(
"vagrant.actions.vm.provision.beginning",
provisioner: type_name))
provisioner: name))
env[:hook].call(:provisioner_run, env.merge(
callable: method(:run_provisioner),

View File

@ -296,6 +296,7 @@ module VagrantPlugins
prov = nil
if name
name = name.to_sym
prov = @provisioners.find { |p| p.name == name }
end