Module: SimplerWorkflow::ParentProcess

Defined in:
lib/simpler_workflow/parent_process.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



40
41
42
43
44
45
46
47
48
49
50
# File 'lib/simpler_workflow/parent_process.rb', line 40

def self.extended(base)

  $logger = Logger.new STDOUT
  
  base.extend ClassMethods

  Signal.trap('TERM') { base.graceful_exit 'QUIT'}

  Signal.trap('INT') { base.graceful_exit 'INT'}
  
end