Sha256: 188379289277e1589dd794d357799d314dbee58c454b5aa160b86a5e3ecc45b8
Contents?: true
Size: 321 Bytes
Versions: 4
Compression:
Stored size: 321 Bytes
Contents
module TestingBot module Tunnel def self.start_tunnel(host, port, localport = 80) @@pid = fork do exec "ssh -gNR #{port}:localhost:#{localport} #{host}" end end def self.stop_tunnel if @@pid Process.kill "TERM", @@pid Process.wait @@pid end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
testingbot-0.0.9 | lib/testingbot/tunnel.rb |
testingbot-0.0.8 | lib/testingbot/tunnel.rb |
testingbot-0.0.7 | lib/testingbot/tunnel.rb |
testingbot-0.0.6 | lib/testingbot/tunnel.rb |