Archive for December, 2009

Micro or Short?

December 3, 2009

I’ve been getting some questions lately about what the difference is between generating a “micro” or generating a “short” stack is. So here it is:

Micro: Generates a structure that’s good to use with passenger out of the box
Short: Generates a structure that’s gemmable with Jeweler

They’re both Pancake Short Stacks. A micro just doesn’t have all the files / directories generated. Add them as needed and they’ll work.

Here’s the structures:

∴ pancake-gen micro foo
#snip
∴ tree foo
foo
|-- Rakefile
|-- config.ru
|-- foo.rb
|-- pancake_init.rb
|-- public
|-- tmp
`-- views
    `-- root.html.haml

And for a Short Stack:

∴ pancake-gen short bar
#snip
∴ tree bar
bar
|-- LICENSE
|-- README
|-- Rakefile
|-- VERSION
|-- lib
|   |-- bar
|   |   |-- bar.rb
|   |   |-- config
|   |   |   |-- config.rb
|   |   |   `-- environments
|   |   |       |-- development.rb
|   |   |       |-- production.rb
|   |   |       `-- staging.rb
|   |   |-- config.ru
|   |   |-- models
|   |   |-- mounts
|   |   |-- public
|   |   |-- tasks
|   |   |   `-- bar.rake
|   |   |-- tmp
|   |   `-- views
|   |       `-- root.html.haml
|   `-- bar.rb
|-- pancake_init.rb
`-- spec
    |-- bar_spec.rb
    `-- spec_helper.rb

The “micro” stack has a stack root in “foo/” and the “short” stack has a root at “bar/lib/bar”