class Diecut::TemplateListBuilder
Public Instance Methods
collect()
click to toggle source
# File lib/diecut/report-builders/template-list.rb, line 15 def collect each_template do |name, template| report.add(template.path) end end
fail_advice()
click to toggle source
# File lib/diecut/report-builders/template-list.rb, line 29 def fail_advice (<<-EOA) No plugin provides any templates. This is probably simple misconfiguration a plugin, or an important plugin has been omitted. Plugins: #{mill.mediator.activated_plugins.map(&:name)} Plugin template paths: #{mill.valise.to_s} EOA end
fail_summary()
click to toggle source
# File lib/diecut/report-builders/template-list.rb, line 25 def fail_summary report.summary = "No templates will render" end
report_fields()
click to toggle source
# File lib/diecut/report-builders/template-list.rb, line 11 def report_fields ["Template path"] end
report_name()
click to toggle source
# File lib/diecut/report-builders/template-list.rb, line 7 def report_name "Templates included" end
report_status()
click to toggle source
# File lib/diecut/report-builders/template-list.rb, line 21 def report_status report.empty? ? 'FAIL' : 'OK' end