Module: MessQ
- Defined in:
- lib/messQ/agent.rb,
lib/messQ.rb,
lib/messQ/server.rb,
lib/messQ/session.rb,
lib/messQ/verbose.rb,
lib/messQ/version.rb
Overview
MessQ::Verbose
Defined Under Namespace
Modules: Agent, Server, Session, Verbose
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.host ⇒ Object
Returns the value of attribute host.
-
.logfile ⇒ Object
Returns the value of attribute logfile.
-
.pid ⇒ Object
Returns the value of attribute pid.
-
.pidfile ⇒ Object
Returns the value of attribute pidfile.
-
.port ⇒ Object
Returns the value of attribute port.
-
.q ⇒ Object
Returns the value of attribute q.
Class Method Summary collapse
Class Attribute Details
.host ⇒ Object
Returns the value of attribute host.
13 14 15 |
# File 'lib/messQ.rb', line 13 def host @host end |
.logfile ⇒ Object
Returns the value of attribute logfile.
14 15 16 |
# File 'lib/messQ.rb', line 14 def logfile @logfile end |
.pid ⇒ Object
Returns the value of attribute pid.
14 15 16 |
# File 'lib/messQ.rb', line 14 def pid @pid end |
.pidfile ⇒ Object
Returns the value of attribute pidfile.
14 15 16 |
# File 'lib/messQ.rb', line 14 def pidfile @pidfile end |
.port ⇒ Object
Returns the value of attribute port.
13 14 15 |
# File 'lib/messQ.rb', line 13 def port @port end |
.q ⇒ Object
Returns the value of attribute q.
13 14 15 |
# File 'lib/messQ.rb', line 13 def q @q end |
Class Method Details
.messQ_server ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/messQ.rb', line 22 def self.messQ_server begin Process.daemon(true) @pid = Process.fork do MessQ::Server.start end File.open(@pidfile, 'w'){|fyl| fyl.puts @pid} MessQ::Verbose.logme "MessQ server PID:#{@pid}" rescue MessQ::Verbose.logme "messQ failed." end end |