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