Anonymous
public text v1 · immutable def determine_pkg_managers()
pkg_mgrs = []
ENV['PATH'].split(':').each do |loc|
SUPPORTED_PKG_MANAGERS.each do |mgr|
if File.exist?(File.join(loc,mgr))
pkg_mgrs << mgr
end
end
end
return pkg_mgrs
end