Rodreegez/powder — pull request #54 by brookr (2011-11-28 19:44:41+00:00)
Title: Manage Pow environment with powder

Hello!

I've been enjoying the ultra-simplicity of powder, so when I needed to tweak some ENV options passed to Pow, I wanted to be able to manage it with powder. I added a few simple functions to make this dead-simple, and thought you might be interested.

My use case is a little unusual: We have a suite of Selenium tests that I want to run against the app locally, meaning I need to run Pow with RAILS_ENV=test. Pow will set env vars from .powenv, so it's pretty simple to stick something in there from a powder script.

The more common case of running as production can now be accomplished with:

powder prod # or: powder production

Interested in pulling? Feel free to request any stylistic or documentation changes, I'll be happy to do some additional tweaking to make it pull-worthy.

Thanks for making such a handy utility!

Commit message:
"Pow loads environment variables from .powenv. With a few helper functions,
we can make it ridiculously easy add, edit, and remove those env vars.

And that means we can switch RAILS_ENVs super easily as well."

—brook riggio
@brookr/@decielo

PS: I blogged about this a little on my company blog: http://decielo.com/articles/169/thanksgiving-with-open-source