Module: Capistrano::SSH::Server
- Defined in:
- lib/capistrano/ssh.rb
Overview
Patch an accessor onto an SSH connection so that we can record the server definition object that defines the connection. This is useful because the gateway returns connections whose “host” is 127.0.0.1, instead of the host on the other side of the tunnel.
Instance Attribute Summary collapse
-
#xserver ⇒ Object
Returns the value of attribute xserver.
Class Method Summary collapse
Instance Attribute Details
#xserver ⇒ Object
Returns the value of attribute xserver.
23 24 25 |
# File 'lib/capistrano/ssh.rb', line 23 def xserver @xserver end |
Class Method Details
.apply_to(connection, server) ⇒ Object
:nodoc:
17 18 19 20 21 |
# File 'lib/capistrano/ssh.rb', line 17 def self.apply_to(connection, server) connection.extend(Server) connection.xserver = server connection end |