Class: LicenseFinder::Carthage
- Inherits:
-
PackageManager
- Object
- PackageManager
- LicenseFinder::Carthage
- Defined in:
- lib/license_finder/package_managers/carthage.rb
Defined Under Namespace
Classes: CarthageError
Instance Method Summary collapse
Methods inherited from PackageManager
#active?, #command_exists?, #current_packages_with_relations, #detected_package_path, id, #initialize, #installed?, #prepare, #prepare_command, #project_root?, takes_priority_over
Constructor Details
This class inherits a constructor from LicenseFinder::PackageManager
Instance Method Details
#current_packages ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/license_finder/package_managers/carthage.rb', line 9 def current_packages cartfile.each_line.map do |line| name, version = name_version_from_line line CarthagePackage.new( name, version, license_text(name), logger: logger, install_path: project_checkout(name) ) end end |
#package_management_command ⇒ Object
23 24 25 |
# File 'lib/license_finder/package_managers/carthage.rb', line 23 def package_management_command LicenseFinder::Platform.darwin? ? 'carthage' : nil end |
#possible_package_paths ⇒ Object
27 28 29 |
# File 'lib/license_finder/package_managers/carthage.rb', line 27 def possible_package_paths [public_dependency_path] end |