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