2rye/rosie — Issue #1: Running rosie:restore without RAILS_ENV set can cause a failure
Author: bunnymatic
Created: 2011-10-24 15:48:48+00:00
State: open

It seems that if RAILS_ENV isn't set, we don't do a good job of trapping the issue early, so restore fails.
```
deploy ~/myproject/current$ bundle exec rake rosie:restore datafile=mydatafile.tgz --trace
** Invoke rosie:restore (first_time)
** Invoke rosie:init (first_time)
** Execute rosie:init
** Execute rosie:restore
Restoring data...
Unpacking backup bundle
rake aborted!
undefined method `[]' for nil:NilClass
/home/deploy/myproject/shared/bundle/ruby/1.9.1/gems/rosie-0.0.5/lib/tasks/rosie.rake:22:in `block in get_db_cmdline_args'
/home/deploy/myproject/shared/bundle/ruby/1.9.1/gems/rosie-0.0.5/lib/tasks/rosie.rake:21:in `each'
/home/deploy/myproject/shared/bundle/ruby/1.9.1/gems/rosie-0.0.5/lib/tasks/rosie.rake:21:in `get_db_cmdline_args'
```