Module: Xolo::Server::Constants

Included in:
Xolo::Server
Defined in:
lib/xolo/server/constants.rb

Constant Summary collapse

EXECUTABLE_FILENAME =

Constants

'xoloserver'
APP_ENV_DEV =

Sinatra App Environments

'development'
APP_ENV_TEST =
'test'
APP_ENV_PROD =
'production'
SESSION_EXPIRE_AFTER =

Sinatra App Settings

3600
DATA_DIR =

Paths

Pathname.new('/Library/Application Support/xoloserver')
BACKUPS_DIR =
DATA_DIR + 'backups'
PROGRESS_COMPLETE =

streaming progress from the server. When a line containing only this string shows up in a stream file that means the stream is done, and no more lines will be sent.

'PROGRESS_COMPLETE'
MAX_JAMF_WAIT_FOR_TITLE_EDITOR =

The max time (in seconds) to wait for a the Jamf server to see a change in the Title Editor, e.g. a new version appearing or an EA needing acceptance. Normally the Jamf server will check in with the Title Editor every 5 minutes.

3600
MAX_JAMF_WAIT_FOR_PKG_DELETION =

The max time (in seconds) to wait for a the Jamf server to stop the pkg deletion thread pool. It will wait until the queue is empty, or until this time has passed. Each pkg deletion thread can take up to 5 minutes, and there are 10 threads in the pool.

3600
JAMF_OBJECT_NAME_PFX =

Jamf objects are named with this prefix followed by <title>-<version> See also: Xolo::Server::Version#jamf_obj_name_pfx which holds the full prefix for that version, and is used as the full object name if appropriate (e.g. Package objects)

'xolo-'

Class Method Summary collapse

Class Method Details

.included(includer) ⇒ Object

when this module is included



16
17
18
# File 'lib/xolo/server/constants.rb', line 16

def self.included(includer)
  Xolo.verbose_include includer, self
end