#!/usr/bin/env ruby require 'pathname' source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path $LOAD_PATH << source_path require 'spark' templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__)) Spark::AppGenerator.source_root templates_root Spark::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root Spark::AppGenerator.start