Sha256: 8ee03d573c8be3e351355ea55da2a3bab9046c06296560d1da05675c784f546e
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
module Toadie class Report def self.publish(scope) 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
toadie-0.0.2 | lib/toadie/report.rb |
toadie-0.0.1 | lib/toadie/report.rb |