Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow choosing base; also added StdoutBase to allow dumping to STDOUT #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

International
Copy link

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

Best wishes,

George

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant