Class: ProcessWanker::ConfigDaemon

Inherits:
ConfigNode show all
Defined in:
lib/config/config_daemon.rb

Constant Summary collapse

DEFAULT_LISTEN_HOSTNAME =
"127.0.0.1"

Instance Attribute Summary collapse

Attributes inherited from ConfigNode

#container

Instance Method Summary collapse

Methods inherited from ConfigNode

#find_attributes, #get_auth

Constructor Details

#initializeConfigDaemon

Returns a new instance of ConfigDaemon.



45
46
47
48
49
50
# File 'lib/config/config_daemon.rb', line 45

def initialize()
	@hooks=[]
	@services={}
	@listen_hostname=DEFAULT_LISTEN_HOSTNAME
	@listen_port=NetUtil::DEFAULT_PORT
end

Instance Attribute Details

#authObject

Returns the value of attribute auth.



38
39
40
# File 'lib/config/config_daemon.rb', line 38

def auth
  @auth
end

#hooksObject

Returns the value of attribute hooks.



40
41
42
# File 'lib/config/config_daemon.rb', line 40

def hooks
  @hooks
end

#listen_hostnameObject

Returns the value of attribute listen_hostname.



41
42
43
# File 'lib/config/config_daemon.rb', line 41

def listen_hostname
  @listen_hostname
end

#listen_portObject

Returns the value of attribute listen_port.



42
43
44
# File 'lib/config/config_daemon.rb', line 42

def listen_port
  @listen_port
end

#log_fileObject

Returns the value of attribute log_file.



43
44
45
# File 'lib/config/config_daemon.rb', line 43

def log_file
  @log_file
end

#servicesObject

Returns the value of attribute services.



37
38
39
# File 'lib/config/config_daemon.rb', line 37

def services
  @services
end

#smtpObject

Returns the value of attribute smtp.



39
40
41
# File 'lib/config/config_daemon.rb', line 39

def smtp
  @smtp
end