Created
February 16, 2011 05:24
-
-
Save DanThiffault/828914 to your computer and use it in GitHub Desktop.
Ruby based cucumber file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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