Class: Eye::Trigger::StopChilds

Inherits:
Eye::Trigger show all
Defined in:
lib/eye/trigger/stop_childs.rb

Constant Summary

Constants inherited from Eye::Trigger

TYPES

Instance Attribute Summary

Attributes inherited from Eye::Trigger

#message, #options, #process

Attributes included from Dsl::Validation

#defaults, #should_bes, #validates, #variants

Instance Method Summary collapse

Methods inherited from Eye::Trigger

create, #defer, #filter_transition, get_class, #initialize, #inspect, #logger_sub_tag, #logger_tag, name_and_class, #notify, register, #run_in_process_context, validate!

Methods included from Dsl::Validation

#inherited, #param, #validate

Constructor Details

This class inherits a constructor from Eye::Trigger

Instance Method Details

#check(trans) ⇒ Object



5
6
7
8
# File 'lib/eye/trigger/stop_childs.rb', line 5

def check(trans)
  debug "stop childs"
  process.childs.pmap { |pid, c| c.stop }
end