Sha256: bae4d7fd4114e82b11ce4414643403f0cc0eb70ef3a89a7bc288de64c0c4ca4d

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

class Navy::Admiral::Orders < Navy::Orders

  defaults.merge!({
    after_fork: ->(admiral, captain) do
      admiral.logger.info("captain=#{captain.label} spawned pid=#{$$}")
    end,
    before_fork: ->(admiral, captain) do
      admiral.logger.info("captain=#{captain.label} spawning...")
    end,
    before_exec: ->(admiral) do
      admiral.logger.info("forked child re-executing...")
    end,
    captains: {},
    post_fork: ->(admiral, captain) do
      admiral.logger.debug("captain=#{captain.label} post-fork") if $DEBUG
    end,
    preload: ->(admiral) do
      admiral.logger.info("admiral preloading...")
    end,
    respawn_limit: 100,
    respawn_limit_seconds: 1.0
  })

end
require 'navy/admiral/speak'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
navy-1.0.6 lib/navy/admiral/orders.rb