lib/vagrant-host-shell/provisioner.rb in vagrant-host-shell-0.0.1 vs lib/vagrant-host-shell/provisioner.rb in vagrant-host-shell-0.0.2
- old
+ new
@@ -2,10 +2,13 @@
class Provisioner < Vagrant.plugin('2', :provisioner)
def provision
Vagrant::Util::Subprocess.execute(
'/bin/bash',
'-c',
- config.inline
- )
+ config.inline,
+ :notify => [:stdout, :stderr]
+ ) do |io_name, data|
+ @machine.env.ui.info "[#{io_name}] #{data}"
+ end
end
end
end