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

Version Path
license_finder-6.15.0 lib/license_finder/reports/junit_report.rb
gitlab-license_finder-6.14.2.1 lib/license_finder/reports/junit_report.rb
license_finder-6.14.2 lib/license_finder/reports/junit_report.rb
license_finder-6.14.1 lib/license_finder/reports/junit_report.rb
license_finder-6.13.0 lib/license_finder/reports/junit_report.rb
license_finder-6.12.2 lib/license_finder/reports/junit_report.rb
license_finder-6.12.1 lib/license_finder/reports/junit_report.rb
license_finder-6.12.0 lib/license_finder/reports/junit_report.rb
license_finder-6.11.0 lib/license_finder/reports/junit_report.rb
license_finder-6.10.1 lib/license_finder/reports/junit_report.rb
license_finder-6.10.0 lib/license_finder/reports/junit_report.rb