Skip to content

Instantly share code, notes, and snippets.

@thejefflarson
Created August 25, 2010 15:29
Show Gist options
  • Select an option

  • Save thejefflarson/549716 to your computer and use it in GitHub Desktop.

Select an option

Save thejefflarson/549716 to your computer and use it in GitHub Desktop.
task :proxies => :environment do
todo = []
#todo << "killall ssh"
todo << "ssh -f jeff@server1 -L 8080:maps.google.com:80 -N"
todo << "ssh -f jeff@server2 -L 8081:maps.google.com:80 -N"
todo << "ssh -f jeff@server3 -L 8082:maps.google.com:80 -N"
`#{todo.join("&&")}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment