Output of the any script execution will go into the text, html or xml files.
Alex Khatilov
gem "output-to-file", "~> 1.0.1"