provisioners/shell: friendly output if winrm shell provisioning

This commit is contained in:
Mitchell Hashimoto 2014-04-11 21:42:34 -07:00
parent bddc7928ad
commit 286fd2f2f8
1 changed files with 8 additions and 0 deletions

View File

@ -100,6 +100,14 @@ module VagrantPlugins
Set-ExecutionPolicy $old -force
EOH
if config.path
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.running",
script: exec_path))
else
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.running",
script: "inline PowerShell script"))
end
# Execute it with sudo
comm.sudo(command) do |type, data|
handle_comm(type, data)