AndreasMadsen/immortal — pull request #2 by AndreasMadsen (2012-02-24 18:14:40+00:00)
Title: [refactor] immortal 0.2.0

This refactor is an almost rewrite of the `immortal` module.

The most important changes are:

- option.mode is renamed to options.strategy
- monitor API is redefined.
- The events are now `daemon`, `pump` and `process`.
- The restart error is now stored in this.error
- monitor API checks are moved to the monitor file.
- Process class is now a core file
- Process do no longer auto spawn after constructor call
- RelayStream and LineStream are now a core file
- LineStream do now take care of both in and out streams
- helper module was moved out of core
- execute.js, daemon.js, pump.js is moved to a folder called executables