class Armada::Connection::Remote
Attributes
gateway[R]
host[R]
port[R]
Public Class Methods
new(host, port = nil, gateway_host = nil, gateway_user = nil)
click to toggle source
# File lib/armada/connection/remote.rb, line 6 def initialize(host, port = nil, gateway_host = nil, gateway_user = nil) @host, @port = host.split(":") @port = port ||= @port @gateway_host = gateway_host @gateway_user = gateway_user initialize_gateway! end
Public Instance Methods
initialize_gateway!()
click to toggle source
# File lib/armada/connection/remote.rb, line 18 def initialize_gateway! if @gateway_host @gateway = Net::SSH::Gateway.new(@gateway_host, @gateway_user) @tunneled_port = @gateway.open(@host, @port) end end
to_s()
click to toggle source
# File lib/armada/connection/remote.rb, line 14 def to_s "#{@host}:#{@port}" end