forked from deadprogram/frankie
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update frankie for Sinatra 0.2.2, plus add ssh tunnel script to project
- Loading branch information
Ron Evans
committed
Apr 22, 2008
1 parent
695790c
commit e6ca960
Showing
4 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
v0.2.2. Updated to deal with session change in Sinatra, plus misc bug fixes with Facebooker integration | ||
|
||
v0.2.0. Converted codebase to become Ruby Gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
bin/tunnel | ||
CHANGELOG | ||
lib/frankie.rb | ||
LICENSE | ||
Manifest | ||
Rakefile | ||
README.rdoc | ||
test/frankie_test.rb | ||
test/helper.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters