Slide 46
Slide 46 text
class WarningsCollector < ParallelCollector
def process
path = File.join("/tmp", "warnings.txt")
File.open(path, "a") do |f|
@data.each do |message, origin|
f.puts [message, origin].join("*^.^*")
end
end
script = File.absolute_path(
"../../../script/process-warnings", __FILE__)
system(script, "/tmp")
end
end
UPGRADING: Warning monkey patch