#!/usr/bin/env ruby # Make sure we can get to hypercuke on the load path unless $:.any? {|path| path =~ /hypercuke\/lib/ } lib_path = File.expand_path( File.join( File.dirname(__FILE__), *%w[.. lib] ) ) $:.unshift(lib_path) end # Load the gem begin require 'hypercuke' rescue LoadError require 'rubygems' # worth a shot before just dying require 'hypercuke' end # Hand the Hypercuke command off to the CLI, which will parse and # Kernel#exec the appropriate Cucumber command Hypercuke::CLI.exec ARGV, output_to: STDOUT