def msg(title, &block) puts "\n" + "-"*10 + title + "-"*10 block.call puts "-"*10 + "-------" + "-"*10 + "\n" end def print_usage puts < setup a rubymine project awetestlib netbeans_setup setup a netbeans project awetestlib mobile_app_setup setup a mobile app project awetestlib cucumber_setup setup cucumber regression and provide skeleton folder structure awetestlib [parameters] run an awetest regression script EOF end def check_script_type(options) script_options = ['Regression', 'Cucumber'] if script_options.include? ARGV[0] options[:script_type] = ARGV[0] options[:script_file] = ARGV[1] else options[:script_type] = 'Regression' options[:script_file] = ARGV[0] end end