delano/rye — pull request #32 by megeek (2013-04-08 07:29:40+00:00)
Title: Stderr channel from Net:SSH:Buffer not being read from correctly.  Error messages from Rye::Set commands are lost. 

I'm using Rye::Set and std error from commands are not being stored in the Rap correctly. This issue is that the code (line 826, 827 in box.rb):

rap.add_stdout(channel[:stdout].read || '')
rap.add_stderr(channel[:stderr].read || '')

is reading from the end of the Net:SSH:Buffer object (channel). I've added the code necessary to fix this in this pull request.

Thanks!