Skip to content

Instantly share code, notes, and snippets.

@ahk
Created May 27, 2010
Embed
What would you like to do?
#!/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