class

Patty::Services::MacBrewAdapter

Inherits Patty::Services::Adapter < Reference < Object

Controls programs installed as Homebrew services. brew services list is slow (~1s), so the parsed list is cached briefly.

Constants

CACHE_TTL = 5.seconds

Instance methods

available?(program : String) : Bool
Source
name
Source
restart(program : String) : Result
Source
start(program : String) : Result
Source
status(program : String) : Status
Source
stop(program : String) : Result
Source