diff options
Diffstat (limited to 'lib/net/ssh/test/script.rb')
-rw-r--r-- | lib/net/ssh/test/script.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/net/ssh/test/script.rb b/lib/net/ssh/test/script.rb index 89ee064..701defc 100644 --- a/lib/net/ssh/test/script.rb +++ b/lib/net/ssh/test/script.rb @@ -111,6 +111,15 @@ module Net; module SSH; module Test events << RemotePacket.new(:channel_data, channel.local_id, data) end + # Scripts the reception of a channel extended data packet from the remote + # host by the given Net::SSH::Test::Channel +channel+. This will typically + # be called via Net::SSH::Test::Channel#gets_extended_data. + # + # Currently the only extended data type is stderr == 1. + def gets_channel_extended_data(channel, data) + events << RemotePacket.new(:channel_extended_data, channel.local_id, 1, data) + end + # Scripts the reception of a channel request packet from the remote host by # the given Net::SSH::Test::Channel +channel+. This will typically be # called via Net::SSH::Test::Channel#gets_exit_status. |