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:
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 :)
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:
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