Skip to content

Instantly share code, notes, and snippets.

@DanThiffault
Created February 16, 2011 05:24
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 DanThiffault/828914 to your computer and use it in GitHub Desktop.
Save DanThiffault/828914 to your computer and use it in GitHub Desktop.
Ruby based cucumber file
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'cucumber' is installed as part of a gem, and
# this file is here to facilitate running it.
#
if File.exists? "bin/cucumber"
exec "bin/cucumber " + $*.join(" ")
else
require 'rubygems'
version = ">= 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
ARGV.shift
end
gem 'cucumber', version
load Gem.bin_path('cucumber', 'cucumber', version)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment