Last active
October 7, 2020 16:35
-
-
Save mainej/b190d2f138c2b9e2e20a to your computer and use it in GitHub Desktop.
Custom ERB `license_finder` report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'license_finder' | |
# See lib/license_finder/core.rb for more configuration options. | |
# A quiet logger is required when running reports... | |
lf = LicenseFinder::Core.new(logger: { quiet: true }) | |
# Example ERB template: lib/license_finder/reports/templates/html_report.erb | |
template = Pathname.new("path/to/your/template.erb") | |
print LicenseFinder::ErbReport | |
.new(lf.acknowledged, project_name: lf.project_name) | |
.to_s(template) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pivotal/LicenseFinder#786