public
Description: Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.
Homepage: http://www.deadprogrammersociety.com
Clone URL: git://github.com/deadprogrammer/frankie.git
commit  13527a067f42d358bdfd95556397f31851a71665
tree    c36343e4e3dc2a2e2435731b7dec5009a8b4e5c7
parent  4859a7d96463ab2edd57526fcdf0e717e8b23e04
frankie / bin / tunnel
100755 13 lines (11 sloc) 0.414 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env ruby
 
host, remote_port, local_port = ARGV
raise 'You must specify at least a hostname - i.e. tunnel myhost.com' unless host
remote_port ||= 10000
local_port ||= 4567
puts "Tunneling #{host}:#{remote_port} to 0.0.0.0:#{local_port}"
begin
  exec "autossh -M 48484 -nNT -g -R *:#{remote_port}:0.0.0.0:#{local_port} #{host}"
rescue
  raise "Tunnel failed to start. Do you have autossh installed?"
end