Sha256: ee202d07ede71ed12f81bba48aa243746435cd2c58664f28572b1b88c85de0b0
Contents?: true
Size: 563 Bytes
Versions: 25
Compression:
Stored size: 563 Bytes
Contents
class Specinfra::Command::Darwin::Base::Service < Specinfra::Command::Base::Service class << self def check_is_enabled(service, level=nil) "launchctl list | grep #{escape(service)}" end def check_is_enabled_under_homebrew(service) "brew services list | grep #{escape(service)}" end def check_is_running(service) "launchctl list | grep #{escape(service)} | grep -E '^[0-9]+'" end def check_is_running_under_homebrew(service) "brew services list | grep #{escape(service)} | grep 'started'" end end end
Version data entries
25 entries across 25 versions & 1 rubygems