Class: LicenseFinder::Bundler
Class Method Summary
collapse
Instance Method Summary
collapse
#active?, #capture, command_exists?, current_packages, #current_packages_with_relations, installed?, package_managers
Constructor Details
#initialize(options = {}) ⇒ Bundler
5
6
7
8
9
|
# File 'lib/license_finder/package_managers/bundler.rb', line 5
def initialize options={}
super
@ignored_groups = options[:ignored_groups]
@definition = options[:definition]
end
|
Class Method Details
.package_management_command ⇒ Object
20
21
22
|
# File 'lib/license_finder/package_managers/bundler.rb', line 20
def self.package_management_command
"bundle"
end
|
Instance Method Details
#current_packages ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/license_finder/package_managers/bundler.rb', line 11
def current_packages
logger.log self.class, "including groups #{included_groups.inspect}"
details.map do |gem_detail, bundle_detail|
BundlerPackage.new(gem_detail, bundle_detail, logger: logger).tap do |package|
logger.package self.class, package
end
end
end
|