Sha256: edaa8c601d4024f038c1994a2b943f678a3cc1ead377e031e62077ac70ded3d6
Contents?: true
Size: 626 Bytes
Versions: 6
Compression:
Stored size: 626 Bytes
Contents
module Toadie class Report 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 def self.publish_assets FileUtils.mkdir_p Toadie.assets_path Dir.glob(File.join(File.dirname(__FILE__), '../../assets/*')) do |file| FileUtils.cp file, Toadie.assets_path end end end end
Version data entries
6 entries across 6 versions & 1 rubygems