Class: Net::SSH::Multi::PendingConnection::SendGlobalRequestRecording
- Inherits:
-
Object
- Object
- Net::SSH::Multi::PendingConnection::SendGlobalRequestRecording
- Defined in:
- lib/net/ssh/multi/pending_connection.rb
Overview
Represents a #send_global_request action.
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
:nodoc:.
-
#extra ⇒ Object
readonly
:nodoc:.
-
#type ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(type, extra, callback) ⇒ SendGlobalRequestRecording
constructor
A new instance of SendGlobalRequestRecording.
- #replay_on(session) ⇒ Object
Constructor Details
#initialize(type, extra, callback) ⇒ SendGlobalRequestRecording
Returns a new instance of SendGlobalRequestRecording.
38 39 40 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 38 def initialize(type, extra, callback) @type, @extra, @callback = type, extra, callback end |
Instance Attribute Details
#callback ⇒ Object (readonly)
:nodoc:
36 37 38 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 36 def callback @callback end |
#extra ⇒ Object (readonly)
:nodoc:
36 37 38 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 36 def extra @extra end |
#type ⇒ Object (readonly)
:nodoc:
36 37 38 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 36 def type @type end |
Instance Method Details
#replay_on(session) ⇒ Object
42 43 44 |
# File 'lib/net/ssh/multi/pending_connection.rb', line 42 def replay_on(session) session.send_global_request(type, *extra, &callback) end |