Skip to content

Instantly share code, notes, and snippets.

@ahk
Created May 27, 2010 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahk/415474 to your computer and use it in GitHub Desktop.
Save ahk/415474 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Simple executable wrapper for Surrender's server/client dispatching
this_file = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
bin_dir = File.dirname this_file
exec_file = File.join bin_dir, '..', 'surrender.rb'
args = ARGV.join ' '
exec "ruby #{exec_file} #{args}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment