module Net::SSH::BufferedIo
def send_pending
Sends as much of the pending output as possible. Returns +true+ if any
def send_pending if output.length > 0 sent = send(output.to_s, 0) debug { "sent #{sent} bytes" } output.consume!(sent) return sent > 0 else return false end end