Class: LicenseFinder::MavenDependencyFinder
- Inherits:
-
Object
- Object
- LicenseFinder::MavenDependencyFinder
- Defined in:
- lib/license_finder/package_utils/maven_dependency_finder.rb
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(project_path) ⇒ MavenDependencyFinder
constructor
A new instance of MavenDependencyFinder.
Constructor Details
#initialize(project_path) ⇒ MavenDependencyFinder
Returns a new instance of MavenDependencyFinder.
5 6 7 |
# File 'lib/license_finder/package_utils/maven_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/maven_dependency_finder.rb', line 9 def dependencies Pathname .glob(@project_path.join('**', 'target', 'generated-resources', 'licenses.xml')) .map(&:read) end |