class Zeus::SshTunnel
Public Class Methods
link(remote, destination) { || ... }
click to toggle source
# File lib/zeus/ssh_tunnel.rb, line 9 def self.link(remote, destination) IO.popen("ssh -N #{remote} -L #{destination}") do |pipe| pipe.read # just like wait yield Process.kill('QUIT', pipe.pid) end end