Sha256: b01159b5ed6f6a78650b3f40a44fcbe6d9549ffadb38b2acc2cf0d3112dad52b
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
Contents
require 'cupper/platform_collector' module Cupper class Debian include PlatformCollector def packages(data_extraction) packages = Array.new duplicated = Array.new data_extraction['pkg_deps']['pkg_deps'].each do |dep| duplicated << dep[1] end duplicated.flatten!.uniq! data_extraction['packages']['packages'].each do |pkg| packages.push(pkg) unless duplicated.include? pkg[0] end packages end def files(data_extraction) files = Array.new data_extraction['files']['files'].each do |file| files.push(file) end files end def services(data_extraction) services = Array.new data_extraction['services']['services'].each do |service| services.push(service) end end def users(data_extraction) users = Array.new data_extraction['etc']['etc']['passwd'].each do |user| users.push(user) end end def groups(data_extraction) groups = Array.new data_extraction['etc']['etc']['group'].each do |group| groups.push(group) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems