#!/usr/bin/env ruby require 'rubygems' unless defined?(Gem) lib_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','lib')) unless $LOAD_PATH.include?(lib_dir) $LOAD_PATH << lib_dir end require 'appjam' require File.expand_path(File.dirname(__FILE__) + '/../lib/appjam/generators/app') begin Appjam::Generators::App.start(ARGV) rescue => e STDERR.puts "Error: #{e}\n" exit -1 end