class LicenseAuto::PackageManager

Public Class Methods

new(path) click to toggle source

@uri:

./filepath/name.txt
/some/absolute/file/path/name
http://somesite.com/foo/bar/baz.file
# File lib/license_auto/package_manager.rb, line 22
def initialize(path)
  @path = path
end

Public Instance Methods

check_cli() click to toggle source

return Boolean

# File lib/license_auto/package_manager.rb, line 33
def check_cli; end
dependency_file_path_names(pattern=dependency_file_pattern) click to toggle source
# 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_pattern() click to toggle source

@return Array

# File lib/license_auto/package_manager.rb, line 30
def dependency_file_pattern; end
parse_dependencies() click to toggle source

@return Array

# File lib/license_auto/package_manager.rb, line 27
def parse_dependencies; end