Class: Kryten::ThreadedVisor

Inherits:
Object
  • Object
show all
Extended by:
ThreadedTask
Defined in:
lib/kryten.rb

Instance Attribute Summary

Attributes included from Weaver

#worker, #workers

Attributes included from Lawger

#logger

Attributes included from Runner

#running, #started, #timer

Class Method Summary collapse

Methods included from Weaver

#log_path, #setup, #shutdown, #start_work, #stop_work

Methods included from Task

included

Methods included from Lawger

#default_log_format, #log, #log_path, #name

Methods included from Runner

#after_run, #after_setup, #before_run, #before_setup, #debug, #initialize, #log, #name, #run, #setup, #shutdown, #start, #status, #stop_running

Class Method Details

.setupObject



44
45
46
47
48
# File 'lib/kryten.rb', line 44

def self.setup
  Signal.trap("INT", proc { stop_work })
  Signal.trap("TERM", proc { stop_work })
  super
end