# File lib/phusion_passenger/admin_tools/server_instance.rb, line 84 def connect(socket_name = :main) socket_info = @server_sockets[socket_name] if !socket_info raise "This process has no server socket named '#{socket_name}'." end return Utils.connect_to_server(socket_info.address) if socket_info.address_type == 'unix' return UNIXSocket.new(socket_info.address) else host, port = socket_info.address.split(':', 2) return TCPSocket.new(host, port.to_i) end end
Generated with the Darkfish Rdoc Generator 2.