Sha256: e3dcbb1f6b8b53434379b346630035f3dfbb34d3b1ada715f5477aaf60fcb2db
Contents?: true
Size: 442 Bytes
Versions: 96
Compression:
Stored size: 442 Bytes
Contents
module SpecInfra module Command class Gentoo < Linux def check_enabled(service, level=3) regexp = "^\\s*#{service}\\s*|\\s*\\(boot\\|default\\)" "rc-update show | grep -- #{escape(regexp)}" end def check_installed(package, version=nil) "eix #{escape(package)} --installed" end def check_running(service) "/etc/init.d/#{escape(service)} status" end end end end
Version data entries
96 entries across 96 versions & 1 rubygems