Class: LicenseScout::Reporter
- Inherits:
-
Object
- Object
- LicenseScout::Reporter
- Defined in:
- lib/license_scout/reporter.rb
Defined Under Namespace
Classes: Result
Instance Attribute Summary collapse
-
#all_dependencies ⇒ Object
readonly
Returns the value of attribute all_dependencies.
-
#dependency_license_manifest ⇒ Object
readonly
Returns the value of attribute dependency_license_manifest.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(all_dependencies) ⇒ Reporter
constructor
A new instance of Reporter.
- #report ⇒ Object
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_dependencies ⇒ Object (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_manifest ⇒ Object (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 |
#results ⇒ Object (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
#report ⇒ Object
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 |