Sha256: 488025edb329f0b859e0de25b2207e3398f9763a29b54cdfe58c5ff041a9d30b
Contents?: true
Size: 442 Bytes
Versions: 5
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
5 entries across 5 versions & 1 rubygems