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

Version Path
license_finder-7.1.0 examples/custom_erb_template.rb
license_finder-7.0.1 examples/custom_erb_template.rb
license_finder-7.0.0 examples/custom_erb_template.rb
license_finder-6.15.0 examples/custom_erb_template.rb
gitlab-license_finder-6.14.2.1 examples/custom_erb_template.rb
license_finder-6.14.2 examples/custom_erb_template.rb
license_finder-6.14.1 examples/custom_erb_template.rb
license_finder-6.13.0 examples/custom_erb_template.rb
license_finder-6.12.2 examples/custom_erb_template.rb
license_finder-6.12.1 examples/custom_erb_template.rb
license_finder-6.12.0 examples/custom_erb_template.rb
license_finder-6.11.0 examples/custom_erb_template.rb
license_finder-6.10.1 examples/custom_erb_template.rb
license_finder-6.10.0 examples/custom_erb_template.rb