Class: LicenseFinder::SbtDependencyFinder
- Inherits:
-
Object
- Object
- LicenseFinder::SbtDependencyFinder
- Defined in:
- lib/license_finder/package_utils/sbt_dependency_finder.rb
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(project_path) ⇒ SbtDependencyFinder
constructor
A new instance of SbtDependencyFinder.
Constructor Details
#initialize(project_path) ⇒ SbtDependencyFinder
Returns a new instance of SbtDependencyFinder.
5 6 7 |
# File 'lib/license_finder/package_utils/sbt_dependency_finder.rb', line 5 def initialize(project_path) @project_path = project_path end |
Instance Method Details
#dependencies ⇒ Object
9 10 11 12 13 |
# File 'lib/license_finder/package_utils/sbt_dependency_finder.rb', line 9 def dependencies Pathname .glob(@project_path.join('**', 'target', 'license-reports', '*.csv')) .map(&:read) end |