#!/usr/bin/env ruby require "erb" require "optparse" $old_home = ENV['HOME'] $home = ENV['PWD'] ENV['HOME'] = $home ENV['REAL_HOME'] = $old_home OPTIONS = { :directory => $home, :environment => "development", :public => $home + "/public/", :controllers_base => $home + "/app/controllers/", :views_base => $home + "/app/views/", :models_base => $home + "/app/models/", :reports_base => $home + "/vendor/rrvc/reports/", :helpers_base => $home + "/app/helpers/", :apis_base => $home + "/app/api/", :test_base => $home + "/test/" } _orig = OPTIONS.dup def screen_color(color) return color[0,1].capitalize unless color == 'black' 'K' end # Parse options ARGV.options do |opts| script_name = File.basename($0) opts.banner = "Usage: ruby #{script_name} [options]