Class: Terracop::Formatters::Html
- Inherits:
-
Object
- Object
- Terracop::Formatters::Html
- Defined in:
- lib/terracop/formatters/html.rb
Overview
Generates a single page HTML report listing all the offenses. Ideal for human readable reports.
Instance Method Summary collapse
Instance Method Details
#generate(resources) ⇒ Object
10 11 12 13 |
# File 'lib/terracop/formatters/html.rb', line 10 def generate(resources) template = ERB.new(File.read(File.join(__dir__, './report.html.erb'))) template.result(binding) end |