marshall back command output when passing a command to ps

This commit is contained in:
Matt Wrock 2015-06-05 05:03:29 -07:00
parent cf6d4ef5a1
commit 740877065a
1 changed files with 4 additions and 2 deletions

View File

@ -50,9 +50,11 @@ module VagrantPlugins
end
if !options[:command].nil?
out_code = machine.communicate.execute(options[:command])
out_code = machine.communicate.execute(options[:command].dup) do |type,data|
machine.ui.detail(data) if type == :stdout
end
if out_code == 0
machine.ui.detail("Command: #{options[:command]} executed succesfully with output code #{out_code}.")
machine.ui.success("Command: #{options[:command]} executed succesfully with output code #{out_code}.")
end
next
end