Class: LicenseFinder::Bower

Inherits:
PackageManager show all
Defined in:
lib/license_finder/package_managers/bower.rb

Instance Method Summary collapse

Methods inherited from PackageManager

#active?, #command_exists?, #current_packages_with_relations, #detected_package_path, id, #initialize, #installed?, #prepare, #project_root?, takes_priority_over

Constructor Details

This class inherits a constructor from LicenseFinder::PackageManager

Instance Method Details

#current_packagesObject



7
8
9
10
11
# File 'lib/license_finder/package_managers/bower.rb', line 7

def current_packages
  bower_output.map do |package|
    BowerPackage.new(package, logger: logger)
  end
end

#package_management_commandObject



13
14
15
# File 'lib/license_finder/package_managers/bower.rb', line 13

def package_management_command
  'bower'
end

#possible_package_pathsObject



21
22
23
# File 'lib/license_finder/package_managers/bower.rb', line 21

def possible_package_paths
  [project_path.join('bower.json')]
end

#prepare_commandObject



17
18
19
# File 'lib/license_finder/package_managers/bower.rb', line 17

def prepare_command
  'bower install'
end