class Shred::Commands::Services::LaunchctlService

Attributes

plist[R]

Public Class Methods

new(sym: nil, plist: nil) click to toggle source
Calls superclass method Shred::Commands::Services::Service::new
# File lib/shred/commands/services.rb, line 40
def initialize(sym: nil, plist: nil)
  super(sym: sym)
  @plist = plist
end

Public Instance Methods

start(ctx) click to toggle source
# File lib/shred/commands/services.rb, line 45
def start(ctx)
  super(ctx, "launchctl load -w -F #{plist}")
end
stop(ctx) click to toggle source
Calls superclass method Shred::Commands::Services::Service#stop
# File lib/shred/commands/services.rb, line 49
def stop(ctx)
  super(ctx, "launchctl unload #{plist}")
end