Class: Net::SSH::Multi::PendingConnection::ChannelOpenRecording

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ssh/multi/pending_connection.rb

Overview

Represents a #open_channel action.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#channelObject (readonly)

:nodoc:



22
23
24
# File 'lib/net/ssh/multi/pending_connection.rb', line 22

def channel
  @channel
end

#extrasObject (readonly)

:nodoc:



22
23
24
# File 'lib/net/ssh/multi/pending_connection.rb', line 22

def extras
  @extras
end

#typeObject (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