Sha256: 9f9054a5b466f36ff1e8a375baa377b182aeb6901422ccb6c70d9f2841e9d717
Contents?: true
Size: 426 Bytes
Versions: 11
Compression:
Stored size: 426 Bytes
Contents
require 'license_finder/reports/erb_report' module LicenseFinder class JunitReport < ErbReport ROOT_PATH = Pathname.new(__FILE__).dirname TEMPLATE_PATH = ROOT_PATH.join('templates') def to_s(filename = TEMPLATE_PATH.join("#{template_name}.erb")) template = ERB.new(filename.read, nil, '-') template.result(binding) end private def template_name 'junit_report' end end end
Version data entries
11 entries across 11 versions & 2 rubygems