Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 449 Bytes
module LicenseFinder
module Reporter
extend self
def write_reports
dependencies = Dependency.all
write_file LicenseFinder.config.dependencies_text, TextReport.new(dependencies).to_s
write_file LicenseFinder.config.dependencies_html, HtmlReport.new(dependencies).to_s
end
private
def write_file(file_path, content)
File.open(file_path, 'w+') do |f|
f.puts content
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.