Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Created July 24, 2011 10:22
Show Gist options
  • Save danlucraft/1102480 to your computer and use it in GitHub Desktop.
Save danlucraft/1102480 to your computer and use it in GitHub Desktop.
redcar (gems) $ cat bin/redcar_test
#!/bin/sh
echo "foo"
redcar (gems) $ cat $(which redcar_test)
#!/Users/danlucraft/.rvm/rubies/jruby-1.6.3/bin/jruby
#
# This file was generated by RubyGems.
#
# The application 'redcar-dev' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
ARGV.shift
end
gem 'redcar-dev', version
load Gem.bin_path('redcar-dev', 'redcar_test', version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment