#!/usr/bin/env ruby require 'cbaoth' require 'cbaoth/version' app_name = ARGV.first flag = ARGV[1] || "" if app_name == '--help' || app_name == '-h' puts puts "cbaoth v#{Cbaoth::VERSION}" puts 'Author: Curtis Ovard' puts "=" * 50 puts puts 'The cbaoth creates a base ruby app, this layout is my base automation layout.' puts 'To create your app simply type the following from the command line. (replace my_app_name with your ruby app name)' puts 'It will generate a base ruby app within your current directory.' puts puts "=" * 50 puts "Flags" puts "-g\t\t\tThis flag will cause the app to not initialize git" puts puts "=" * 50 puts puts "\t $ cbaoth my_app_name" puts puts "Then follow the instructions output to the consel after that and you are set. The instructions just tell you to cd into" puts "new app dir and run the respec and guard init commands." else gen = Cbaoth::Generator.new gen.generate app_name, flag end