#!/usr/bin/env ruby require 'pathname' source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path $LOAD_PATH << source_path require 'flame' if ARGV.empty? puts "Please provide a path for the new application" puts puts "See --help for more info" exit 0 elsif ["-v", "--version"].include? ARGV[0] puts Flame::VERSION exit 0 end ARGV << "--skip-javascript" ARGV << "--skip-jbuilder" ARGV << "--database=postgresql" ARGV << "-T" templates_path = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__)) Flame::Generators::App.source_paths << Rails::Generators::AppGenerator.source_root << templates_path Flame::Generators::App.start