lib/awesome_bot/result.rb in awesome_bot-1.8.1 vs lib/awesome_bot/result.rb in awesome_bot-1.8.2

- old
+ new

@@ -56,7 +56,23 @@ end def white_listing !@w.nil? end + + def write(filename) + require 'json' + + r = write_artifacts + File.open(filename, 'w') { |f| f.write r.to_json } + end + + def write_artifacts + require 'date' + { + 'date'=>Time.now, + 'links'=>@links, + 'results'=>statuses_issues + } + end end # class end