public
Description: Rails application generator I use for my projects. Includes Rails freezing, Capistrano recipes, plugins and gems.
Homepage: http://lucashungaro.github.com
Clone URL: git://github.com/lucashungaro/eureka.git
lucashungaro (author)
Wed Oct 28 23:12:31 -0700 2009
commit  32c19002ec75ef2c2679b6b7d197e8d3591e3d78
tree    8c1a25e40627935193856c943ca1f1f0bb958640
parent  a3a37a858fe46da7153c824e05d953bac9a256e5
eureka /
name age message
file README.textile Wed Oct 28 23:12:31 -0700 2009 Some README tweaks [lucashungaro]
file config.yml Tue Oct 06 08:48:50 -0700 2009 Major refactoring - simplifying things [lucashungaro]
directory files/ Thu Oct 08 14:31:25 -0700 2009 Cleanup and refactoring [lucashungaro]
file template.rb Wed Oct 28 22:46:22 -0700 2009 Fixing gem dependencies and adding some gems/pl... [lucashungaro]
directory utils/ Sat Oct 10 08:58:56 -0700 2009 Cap recipe tweak [lucashungaro]
README.textile

Eureka – Rails application generator/template

That’s the Rails application generator I use every time I start to build the “Next Big Idea”™.

It includes some useful plugins and gems and allow some customization through the config.yml file and also asking you some questions throughout the generation process.

What’s included?

You can configure Eureka using the file config.yml. In this file you can specify the Rails version you want to use, the database engine (mysql, postgresql or sqlite) and the git branches you want to create (and which one is checked out by default).

The default plugins are:

The default gems are:

(All environments)

(Development environment only)

(Test environment only)

The generator will also:

  • create a gitignore file
  • remove some unnecessary files and Prototype/Scriptaculous
  • download jQuery
  • create a staging environment
  • configure Rack::Bug as middleware
  • create basic configuration files for database and memcached
  • create some initializers (for cache-money, some date and time formats and others – see files/config/initializers)
  • ask if you want to install the gems (using rake gems:install for all environments)
  • ask if you want to unpack the gems to vendor (using rake gems:unpack for all environments)
  • call rspec and typus default generators
  • ask if you want to use nifty-generators and, if so, generate layout and authentication basic code through it (it will use HAML by default)
  • copy some basic Capistrano recipes for a simple production setup using Passenger and Memcached (see utils/capistrano.rb)
  • create basic rake tasks for coverage, memcached local instance startup, database population and metric_fu
  • ask if you want to use New Relic RPM and, if so, configure it
  • ask if you want to use Hoptoad and, if so, configure it

Usage

First, clone the project (mine or your fork). If you want, modify the config.yml to better suit your needs or template.rb to change something the generator does.

Then, just execute the following command:

$ rails my_app_name -m /complete/path/to/eureka/template.rb

Throughout the generation process you’ll be asked some questions, like what database you want to use and so on.

Feel free to fork the project and customize it as you want. Bug reports are extremely welcome.

Credits

Eureka is based on great work done by:

Also, thanks everyone who made the plugins and gems used on the generator and my everyday work.