Class: LicenseScout::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/license_scout/reporter.rb

Defined Under Namespace

Classes: Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(all_dependencies) ⇒ Reporter

Returns a new instance of Reporter.



82
83
84
85
86
87
88
# File 'lib/license_scout/reporter.rb', line 82

def initialize(all_dependencies)
  @all_dependencies = all_dependencies.sort
  @results = {}
  @did_fail = false
  @needs_fallback = false
  @needs_exception = false
end

Instance Attribute Details

#all_dependenciesObject (readonly)

Returns the value of attribute all_dependencies.



78
79
80
# File 'lib/license_scout/reporter.rb', line 78

def all_dependencies
  @all_dependencies
end

#dependency_license_manifestObject (readonly)

Returns the value of attribute dependency_license_manifest.



80
81
82
# File 'lib/license_scout/reporter.rb', line 80

def dependency_license_manifest
  @dependency_license_manifest
end

#resultsObject (readonly)

Returns the value of attribute results.



79
80
81
# File 'lib/license_scout/reporter.rb', line 79

def results
  @results
end

Instance Method Details

#reportObject



90
91
92
93
94
95
# File 'lib/license_scout/reporter.rb', line 90

def report
  generate_dependency_license_manifest
  save_manifest_file
  detect_problems
  evaluate_results
end