Sha256: 7001d2e9af3a705380f8785021c9bbaa946f0e91b5b605ee4bba5d188743d0bc
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 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 artifacts.legacy_text_file.exist? 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.0.0.1 | lib/license_finder/reports/reporter.rb |