Class: Net::SSH::Multi::PendingConnection::ChannelOpenRecording
- Inherits:
-
Object
- Object
- Net::SSH::Multi::PendingConnection::ChannelOpenRecording
- Defined in:
- lib/net/ssh/multi/pending_connection.rb
Overview
Represents a #open_channel action.
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
:nodoc:.
-
#extras ⇒ Object
readonly
:nodoc:.
-
#type ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(type, extras, channel) ⇒ ChannelOpenRecording
constructor
A new instance of ChannelOpenRecording.
- #replay_on(session) ⇒ Object
Constructor Details
#initialize(type, extras, channel) ⇒ ChannelOpenRecording
Returns a new instance of ChannelOpenRecording.
24 25 26 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 24 def initialize(type, extras, channel) @type, @extras, @channel = type, extras, channel end |
Instance Attribute Details
#channel ⇒ Object (readonly)
:nodoc:
22 23 24 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 22 def channel @channel end |
#extras ⇒ Object (readonly)
:nodoc:
22 23 24 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 22 def extras @extras end |
#type ⇒ Object (readonly)
:nodoc:
22 23 24 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 22 def type @type end |
Instance Method Details
#replay_on(session) ⇒ Object
28 29 30 31 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 28 def replay_on(session) real_channel = session.open_channel(type, *extras, &channel.on_confirm) channel.delegate_to(real_channel) end |