Sha256: 0d12ea0c009c48432dc47bcb03428e5c7391e0b1d2d8f3b7d4e5f27498ec69de
Contents?: true
Size: 727 Bytes
Versions: 6
Compression:
Stored size: 727 Bytes
Contents
module LicenseFinder module Reporter extend self def write_reports dependencies = Dependency.acknowledged 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
6 entries across 6 versions & 1 rubygems