Sha256: 2ac4643c26cccd0f7d93ecb325d4dac70f32eebfdd8fb0d4c4842beacf6bf5c3
Contents?: true
Size: 744 Bytes
Versions: 14
Compression:
Stored size: 744 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'rubygems' require 'bundler/setup' # This is an example of how to programatically generate a report using a custom # ERB template. Run with # > bundle install # > ./custom_erb_template.rb 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(LicenseFinder::Configuration.with_optional_saved_config(logger: :quiet)) # Find many more examples of complex ERB templates in # lib/license_finder/reports/templates/ template = Pathname.new('./sample_template.erb') print LicenseFinder::ErbReport .new(lf.acknowledged, project_name: lf.project_name) .to_s(template)
Version data entries
14 entries across 14 versions & 2 rubygems