Class: Pmux::SessionWrapper
- Inherits:
-
Object
- Object
- Pmux::SessionWrapper
- Defined in:
- lib/pmux/multi_session.rb
Instance Attribute Summary collapse
-
#addr ⇒ Object
readonly
Returns the value of attribute addr.
-
#scp_channels ⇒ Object
readonly
Returns the value of attribute scp_channels.
-
#scp_session_count ⇒ Object
Returns the value of attribute scp_session_count.
-
#ssh ⇒ Object
Returns the value of attribute ssh.
Instance Method Summary collapse
-
#initialize(addr) ⇒ SessionWrapper
constructor
A new instance of SessionWrapper.
- #scp ⇒ Object
Constructor Details
#initialize(addr) ⇒ SessionWrapper
Returns a new instance of SessionWrapper.
12 13 14 15 16 17 18 |
# File 'lib/pmux/multi_session.rb', line 12 def initialize addr @addr = addr @ssh = nil @scp = nil @scp_session_count = 0 @scp_channels = {} end |
Instance Attribute Details
#addr ⇒ Object (readonly)
Returns the value of attribute addr.
9 10 11 |
# File 'lib/pmux/multi_session.rb', line 9 def addr @addr end |
#scp_channels ⇒ Object (readonly)
Returns the value of attribute scp_channels.
9 10 11 |
# File 'lib/pmux/multi_session.rb', line 9 def scp_channels @scp_channels end |
#scp_session_count ⇒ Object
Returns the value of attribute scp_session_count.
10 11 12 |
# File 'lib/pmux/multi_session.rb', line 10 def scp_session_count @scp_session_count end |
#ssh ⇒ Object
Returns the value of attribute ssh.
10 11 12 |
# File 'lib/pmux/multi_session.rb', line 10 def ssh @ssh end |
Instance Method Details
#scp ⇒ Object
20 21 22 |
# File 'lib/pmux/multi_session.rb', line 20 def scp @ssh ? (@scp ||= @ssh.scp) : nil end |