Class: CodePoetry::Formatter::HTMLFormatter
- Inherits:
-
Object
- Object
- CodePoetry::Formatter::HTMLFormatter
- Defined in:
- lib/code_poetry-html/version.rb,
lib/code_poetry-html.rb
Constant Summary collapse
- VERSION =
"0.3.0"
Instance Method Summary collapse
Instance Method Details
#format(stats) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/code_poetry-html.rb', line 8 def format(stats) Dir[File.join(File.dirname(__FILE__), '../public/*')].each do |path| FileUtils.cp_r(path, asset_output_path) end File.open(File.join(output_path, "index.html"), "w+") do |file| file.puts template('views', 'layout').result(binding) end puts "Code Poetry report generated to #{output_path}." end |