# File lib/autotest/html_report.rb, line 8 def self.update STATUS.delete STATUS.keys.sort.last if STATUS.size > MAX File.open(PATH, "w") do |f| f.puts "<title>Autotest Status</title>" STATUS.sort.reverse.each do |t,s| if s > 0 then f.puts "<p style=\"color:red\">#{t}: #{s}" else f.puts "<p style=\"color:green\">#{t}: #{s}" end end end end