class FlatironRails
Constants
- FLATIRON_ROOT
Public Class Methods
run()
click to toggle source
# File lib/flatiron_rails.rb, line 4 def self.run if ['-v', '--version'].include?(ARGV[0]) puts <<-VERSION.gsub(/^ {6}/, '') Flatiron Rails 2.0.0 VERSION elsif ARGV[0].nil? || ['-h','--help'].include?(ARGV[0]) || ARGV[0] != "new" || ARGV[2] puts <<-HELP.gsub(/^ {6}/, '') Usage: flatiron-rails new <app_name> HELP else system("rails new #{ARGV[1]} -Tm #{FLATIRON_ROOT}/templates/flatiron.rb") end end