Method: Bluth::WorkerBase#init
- Defined in:
- lib/bluth/worker.rb
#init(h = nil, u = nil, w = nil) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/bluth/worker.rb', line 28 def init(h=nil, u=nil, w=nil) @host, @user, @wid, = h || Bluth.sysinfo.hostname, u || Bluth.sysinfo.user, w @pid_file ||= "/tmp/#{name}.pid" @log_file ||= "/tmp/#{name}.log" @success ||= 0 @failure ||= 0 @problem ||= 0 end |