wbailey / command_line_reporter

A gem for making it easy to produce a report while a ruby script is executing
Apache License 2.0
432 stars 23 forks source link

reporting into a string?! #4

Closed mugwump closed 12 years ago

mugwump commented 12 years ago

I love it! I'm doing lots of import-scripts and the reporter is extremely handy for that. But I'm also having some import-jobs that run in delayed_job: they do report into the logs, but I'm also storing a report in the database to display it on the website (in a simple

-block).  Is there a simple way to report everything into a string and show this string later?!

wbailey commented 12 years ago

There is now. I just committed a change that gives a new command called capture_output. Have a look at the new example/variable.rb to see how you can use for you database example.

mugwump commented 12 years ago

that is soo cool and soo fast! Thank you very much, I will give it a try!