Class: LicenseFinder::SbtDependencyFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/license_finder/package_utils/sbt_dependency_finder.rb

Instance Method Summary collapse

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

#dependenciesObject



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