Class: LicenseAuto::PackageManager

Inherits:
Object
  • Object
show all
Defined in:
lib/license_auto/package_manager.rb

Direct Known Subclasses

Bundler, GitModule, Golang, Gradle, Maven, Npm

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ PackageManager

@uri:

./filepath/name.txt
/some/absolute/file/path/name
http://somesite.com/foo/bar/baz.file


22
23
24
# File 'lib/license_auto/package_manager.rb', line 22

def initialize(path)
  @path = path
end

Instance Method Details

#check_cliObject

return Boolean



33
# File 'lib/license_auto/package_manager.rb', line 33

def check_cli; end

#dependency_file_path_names(pattern = dependency_file_pattern) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/license_auto/package_manager.rb', line 35

def dependency_file_path_names(pattern=dependency_file_pattern)
  if FileTest.directory?(@path)
    Find.find(@path).select do |filename|
      FileTest.file?(filename) && filename =~ pattern
    end
  else
    LicenseAuto.logger.fatal("The repo path: #{@path} does not exist!")
  end
end

#dependency_file_patternObject



30
# File 'lib/license_auto/package_manager.rb', line 30

def dependency_file_pattern; end

#parse_dependenciesObject



27
# File 'lib/license_auto/package_manager.rb', line 27

def parse_dependencies; end