class SSH::Channel
- SSH::Channel
- IO
- Reference
- Object
Defined in:
ssh.crInstance Method Summary
-
#close : Nil
Closes this
IO
. -
#eof! : Nil
Notify the channel that the STDIN is closed, no more data can be written
- #exec(cmd : String) : Nil
- #exit_signal : String | Nil
- #exit_status : Int32 | Nil
- #finalize
- #on_data(&blk : Proc(Bytes, Bool, Void))
-
#read(slice : Bytes) : Int
Use the
#on_data
callback to retrive output from the SSH session -
#wait : Nil
Wait for the channel to finish executing, issue after
#exec
-
#write(slice : Bytes) : Nil
Write to the STDIN of the SSH session channel
Instance Method Detail
def close : Nil
#
Description copied from class IO
Closes this IO
.
IO
defines this is a no-op method, but including types may override.