Shell provisioner STDOUT/STDERR to console

This commit is contained in:
Mitchell Hashimoto 2011-01-23 12:06:09 -08:00
parent 75e283c81a
commit 535e72204c
1 changed files with 8 additions and 1 deletions

View File

@ -37,7 +37,14 @@ module Vagrant
# Execute it with sudo
vm.ssh.execute do |ssh|
ssh.sudo!("chmod +x #{config.upload_path}")
ssh.sudo!(config.upload_path)
ssh.sudo!(config.upload_path) do |ch, type, data|
if type == :exit_status
ssh.check_exit_status(data, config.upload_path)
else
env.ui.info(data)
end
end
end
end
end