ludicast/yaml_db — pull request #40 by Tempos (2012-07-29 15:43:33+00:00)
Title: Allow choosing base; also added StdoutBase to allow dumping to STDOUT

I added the possibility of dumping to STDOUT. I also added a Rake task called **dump_to_stdout**, and two small tests.

Here's why I find this functionality helpful:

I use Heroku for developing, and sometimes I need to do a database dump. The thing is, exporting the database using taps almost never works, so I started looking for an alternative. By allowing the output to be dumped to STDOUT, I can run the following command:

```bash
heroku run rake db:data:dump output_base=SerializationHelper::StdoutBase --app myapp > db/data.yml
```

And, this way, I can write the dump to my own computer. Please have a look, see if you find this helpful/worthy of integrating in your code :)

Best wishes,

George