Class: LicenseFinder::Rebar
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 = {}) ⇒ 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"
@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
|