class Standupguy::HTMLReport
HTML Formatted report. Creates a tempfile that is deleted in 5 seconds. Tempfile is opened in browser using Launchy.
Public Instance Methods
file()
click to toggle source
# File lib/Standupguy.rb, line 132 def file @file ||= Tempfile.new(["report", ".html"]) end
render()
click to toggle source
# File lib/Standupguy.rb, line 127 def render ::Haml::Engine.new(template("report.html.haml")). render(Object.new, standup: data(@date)) end
show()
click to toggle source
# File lib/Standupguy.rb, line 119 def show File.write(file, render) file.close Launchy.open link Kernel.sleep 5 file.unlink end