Module: Mutineer::OutputFilter::SpawnHook

Defined in:
lib/mutineer/output_filter.rb

Overview

Drops a spawned program's output when its env hash sets a DATABASE_URL this process's copier does not know. A URL set in ENV first is known: the copier reads ENV. Process has no system, so it gets SpawnHook only.

Instance Method Summary collapse

Instance Method Details

#spawn(*args) ⇒ Integer

Returns the child pid.

Returns:

  • (Integer) —

    the child pid.



61
62
63
# File 'lib/mutineer/output_filter.rb', line 61

def spawn(*args)
  super(*OutputFilter.spawn_args(args))
end