Class: APND::Settings::Daemon

Inherits:
Object
  • Object
show all
Defined in:
lib/apnd/settings.rb

Overview

Settings for APND::Daemon

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDaemon

Returns a new instance of Daemon.



74
75
76
77
78
79
# File 'lib/apnd/settings.rb', line 74

def initialize
  @timer    = 30
  @bind     = '0.0.0.0'
  @port     = 22195
  @log_file = '/var/log/apnd.log'
end

Instance Attribute Details

#bindObject

IP to bind APND::Daemon to

Default: '0.0.0.0'


51
52
53
# File 'lib/apnd/settings.rb', line 51

def bind
  @bind
end

#log_fileObject

Path to APND::Daemon log

Default: /var/log/apnd.log


65
66
67
# File 'lib/apnd/settings.rb', line 65

def log_file
  @log_file
end

#portObject

Port APND::Daemon will run on

Default: 22195


58
59
60
# File 'lib/apnd/settings.rb', line 58

def port
  @port
end

#timerObject

Interval (in seconds) the queue will be processed

Default: 30


72
73
74
# File 'lib/apnd/settings.rb', line 72

def timer
  @timer
end