Module: LaunchAgentManagerConstants

Included in:
LaunchAgentManagerInstanceMethods
Defined in:
lib/kanseishitsu/cron/launch_agent_manager_rexml.rb

Overview

Define module LaunchAgentManagerConstants

Constant Summary collapse

VERSION =
'0.1.0'.freeze
LABEL_NAMESPACE =
%w[com local].freeze
INTERVALS =
%w[Minute Hour Day Month Weekday].freeze
SCHEDULE_PARTS_COUNT =
INTERVALS.length
LAUNCHCTL_TEMPLATE =
'launchctl bootstrap gui/%<uid>s %<plist>s'.freeze
SUCCESS_MESSAGE =
'Created and enabled launchd job: %<label>s'.freeze
LAUNCH_AGENTS_DIR_PATH =
File.expand_path(File.join(Dir.home, 'Library', 'LaunchAgents'))
BOOTOUT_TEMPLATE =
'launchctl bootout gui/%<uid>s/%<label>s'.freeze
REMOVE_TEMPLATE =
'launchctl remove gui/%<uid>s/%<label>s'.freeze