lib/ssh.rb in traquitana-0.1.2 vs lib/ssh.rb in traquitana-0.1.3
- old
+ new
@@ -31,10 +31,10 @@
if data.inspect =~ /sudo/
pwd = ask("\nNeed password to run as root/sudo: ") { |c| c.echo = "*" }
channel.send_data("#{pwd}\n")
sleep 0.1
else
- puts msg if msg.size > 1
+ STDOUT.puts msg if msg.size > 1
end
chd.wait
end
end # tty
end # channel