#!/usr/bin/env ruby require 'ftools' require 'fileutils' require File.join(File.dirname(__FILE__),'../lib/miso_java') puts "\nMISO GENERATOR 2000 =============================================\n" puts "=================================================================\n\n" # Set task if ARGV[0] == 'create' and ARGV.size == 2 @task = 'create_app' elsif ARGV.size >= 3 and ARGV[0] == 'scaffold' @task = 'scaffold' else puts "To start a new app: miso-java create puppyapp" puts "To create a scaffold: miso-java scaffold Puppy name breed owner cuteness" puts "Tools for good hacking: script/build, script/stop, script/start, script/restart" puts "Full documentation: See http://blog.paradoxica.net/post/401365886/hello-miso\n\n" Process.exit end MisoJava.send(@task.to_sym, ARGV)