Class: LicenseFinder::Rebar
Class Method Summary
collapse
Instance Method Summary
collapse
#active?, active_package_managers, active_packages, command_exists?, #current_packages_with_relations, #detected_package_path, installed?, package_managers, #prepare, prepare_command, takes_priority_over
Constructor Details
#initialize(options = {}) ⇒ Rebar
3
4
5
6
7
|
# File 'lib/license_finder/package_managers/rebar.rb', line 3
def initialize(options = {})
super
@command = options[:rebar_command] || Rebar.package_management_command
@deps_path = Pathname(options[:rebar_deps_dir] || 'deps')
end
|
Class Method Details
.package_management_command ⇒ Object
21
22
23
|
# File 'lib/license_finder/package_managers/rebar.rb', line 21
def self.package_management_command
'rebar'
end
|
Instance Method Details
#current_packages ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/license_finder/package_managers/rebar.rb', line 9
def current_packages
rebar_ouput.map do |name, version_type, version_value, homepage|
RebarPackage.new(
name,
"#{version_type}: #{version_value}",
install_path: @deps_path.join(name),
homepage: homepage,
logger: logger
)
end
end
|