Sha256: 5f448f824b018458242ce199aa4b5883bb888bc6610873fb671d7d2945c3539a
Contents?: true
Size: 377 Bytes
Versions: 57
Compression:
Stored size: 377 Bytes
Contents
class Specinfra::Command::Gentoo::Base::Service < Specinfra::Command::Linux::Base::Service class << self def check_is_enabled(service, level=3) regexp = "^\\s*#{service}\\s*|\\s*\\(boot\\|default\\)" "rc-update show | grep -- #{escape(regexp)}" end def check_is_running(service) "/etc/init.d/#{escape(service)} status" end end end
Version data entries
57 entries across 57 versions & 1 rubygems