5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/license_finder/reports/reporter.rb', line 5
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
|