Class: Toadie::Report
- Inherits:
-
Object
- Object
- Toadie::Report
- Defined in:
- lib/toadie/report.rb
Class Method Summary collapse
Class Method Details
.publish(scope, started_at) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/toadie/report.rb', line 3 def self.publish(scope, started_at) publish_assets File.open(File.join(Toadie.output_path, "index.html"), "w+") do |file| file.puts Slim::Template.new(File.join(File.dirname(__FILE__), '../../views/report.slim')).render(scope) end STDOUT.puts "Toadie report generated to toadie/index.html in #{Time.now - started_at} seconds." end |