#!/usr/bin/env ruby require File.expand_path(File.join('..', 'lib', 'bretels', 'generators', 'app_generator'), File.dirname(__FILE__)) require File.expand_path(File.join('..', 'lib', 'bretels', 'actions'), File.dirname(__FILE__)) require File.expand_path(File.join('..', 'lib', 'bretels', 'app_builder'), File.dirname(__FILE__)) if ['create', '--create'].include? ARGV[0] ARGV.shift puts "[WARNING] the bretels create argument is deprecated. Just use `bretels #{ARGV.join}` instead" end templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__)) Bretels::AppGenerator.source_root templates_root Bretels::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root Bretels::AppGenerator.start