Sha256: 46c4dd5c0c2a520756ec212cabd1e6e6f0deafedf010ea87c29925bb4cb7bf64
Contents?: true
Size: 760 Bytes
Versions: 2
Compression:
Stored size: 760 Bytes
Contents
module LicenseFinder module Reporter extend self def write_reports dependencies = Dependency.all artifacts = LicenseFinder.config.artifacts write_file artifacts.text_file, TextReport.of(dependencies) write_file artifacts.detailed_text_file, DetailedTextReport.of(dependencies) write_file artifacts.html_file, HtmlReport.of(dependencies) write_file artifacts.markdown_file, MarkdownReport.of(dependencies) if LicenseFinder.config.artifacts.legacy_text_file.exist? LicenseFinder.config.artifacts.legacy_text_file.delete end end private def write_file(file_path, content) file_path.open('w+') do |f| f.puts content end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.0.0.0 | lib/license_finder/reports/reporter.rb |
license_finder-1.0.0.0-java | lib/license_finder/reports/reporter.rb |