Sha256: 98f53a1aad6e00b7f0ef9b0ed0a588d022668c3bd237996a811ce7caee0d825f

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

class Eye::Trigger::StopChildren < Eye::Trigger

  # Kill process children when parent process crashed, or stopped:
  #
  # trigger :stop_children

  param :timeout, [Integer, Float], nil, 60

  # default on stopped, crashed
  param_default :event, [:stopped, :crashed]

  def check(_trans)
    debug { 'stopping children' }
    process.children.values.pmap(&:stop)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eye-0.10.1.pre lib/eye/trigger/stop_children.rb
eye-0.10.0 lib/eye/trigger/stop_children.rb
eye-0.10.0.alpha2 lib/eye/trigger/stop_children.rb
eye-0.10.0.alpha lib/eye/trigger/stop_children.rb
eye-0.9.4.nosigar lib/eye/trigger/stop_children.rb
eye-0.9.4 lib/eye/trigger/stop_children.rb
eye-0.9.3 lib/eye/trigger/stop_children.rb
eye-0.9.2.nosigar lib/eye/trigger/stop_children.rb
eye-0.9.2 lib/eye/trigger/stop_children.rb
eye-0.9.1 lib/eye/trigger/stop_children.rb