Class: LaunchAgent::Daemon

Inherits:
Base
  • Object
show all
Defined in:
lib/launch_agent/daemon.rb

Constant Summary

Constants inherited from Base

Base::DOMAIN, Base::KEYS

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#[]=, #initialize, #job_id, #load, #loaded?, #plist_content, #plist_filename, #unload

Constructor Details

This class inherits a constructor from LaunchAgent::Base

Instance Method Details

#build_paramsObject



3
4
5
6
7
8
9
10
# File 'lib/launch_agent/daemon.rb', line 3

def build_params
  @params['Label'] = job_id
  @params['KeepAlive'] = {
    'SuccessfulExit' => false
  }
  @params['ProgramArguments'] = @args
  @params['RunAtLoad'] = true
end