#!/usr/bin/env ruby # Generates the primary RestfulX project directory structure and # sets up Flex Builder and TextMate specific descriptor files # # You can generate Flex Builder configuration for either *pure* Flex # project or an AIR project. To generate AIR configuration pass the -a # (--air) option to the generator. # # Examples: # `rx-gen pomodo` # generates project structure and a # # default Flex app configuration. # `rx-gen -a pomodo` # as above but generates an AIR app # # and configuration # # Next Steps: # In your new RestfulX project folder run `ruby script/generate` for # a list of available generators. require 'rubygems' require 'rubigen' require File.join(File.dirname(__FILE__), '..', 'lib', 'restfulx') if %w(-v --version).include? ARGV.first puts "#{File.basename($0)} #{RestfulX::FRAMEWORK_VERSION}" exit(0) end require 'rubigen/scripts/generate' RubiGen::Base.use_application_sources! RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'rx_app')