bin/helper.rb in Ifd_Mobile-0.1.8 vs bin/helper.rb in Ifd_Mobile-0.1.9

- old
+ new

@@ -1,51 +1,51 @@ -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 <<EOF - - Usage: Ifd_Mobile <command-name> [parameters] [options] - - <command-name> can be one of - help - prints more detailed help information. - gen - generate a features folder structure. - version - prints the gem version - - <options> can be - -v, --verbose Turns on verbose logging -EOF -end - -def print_help - puts <<EOF - - Usage: Ifd_Mobile <command-name> [parameters] [options] - - <command-name> can be one of - help - gen - version - - Commands: - help : prints more detailed help information. - - gen : creates a features dir. This is usually used once when - setting up ifd-mobile to ensure that the features folder contains - the right step definitions and environment to run with cucumber. - - version : prints the gem version - - <Options> - -v, --verbose Turns on verbose logging -EOF +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 <<EOF + + Usage: Ifd_Mobile <command-name> [parameters] [options] + + <command-name> can be one of + help + prints more detailed help information. + gen + generate a features folder structure. + version + prints the gem version + + <options> can be + -v, --verbose Turns on verbose logging +EOF +end + +def print_help + puts <<EOF + + Usage: Ifd_Mobile <command-name> [parameters] [options] + + <command-name> can be one of + help + gen + version + + Commands: + help : prints more detailed help information. + + gen : creates a features dir. This is usually used once when + setting up ifd-mobile to ensure that the features folder contains + the right step definitions and environment to run with cucumber. + + version : prints the gem version + + <Options> + -v, --verbose Turns on verbose logging +EOF end \ No newline at end of file