lib/ztk/ssh.rb in ztk-0.2.0 vs lib/ztk/ssh.rb in ztk-0.2.1
- old
+ new
@@ -202,11 +202,11 @@
stderr_header = false
end
direct_log(:debug) { data }
@config.stdout.print(data) unless options.silence
- output += data.chomp.strip
+ output += data
end
ch.on_extended_data do |c, type, data|
if !stderr_header
direct_log(:debug) { "===[STDERR]===[STDERR]===[#{self.inspect}]===[STDERR]===[STDERR]===\n" }
@@ -214,10 +214,10 @@
stdout_header = false
end
direct_log(:debug) { data }
@config.stderr.print(data) unless options.silence
- output += data.chomp.strip
+ output += data
end
ch.on_open_failed do |c, code, desc|
log(:fatal) { "Open failed! (#{code.inspect} - #{desc.inspect})" }
end