require 'tempfile' require 'json' require "rubygems" def msg(title, &block) puts "\n" + "-"*10 + title + "-"*10 block.call puts "-"*10 + "-------" + "-"*10 + "\n" end def print_usage puts < [parameters] [options] can be one of help prints more detailed help information. gen generate a features folder structure. setup sets up a non-default keystore to use with this test project. resign resigns the app with the currently configured keystore. build builds the test server that will be used when testing the app. run runs Cucumber in the current folder with the environment needed. version prints the gem version can be -v, --verbose Turns on verbose logging EOF end def print_help print_usage end def is_json?(str) str[0..0] == '{' end