nodejitsu/haibu — Issue #97: Need an event emitted when application starts
Author: indexzero
Created: 2012-02-16 23:36:49+00:00
State: open

Currently, there are two events emitted around spawn operations:

**haibu.on(['spawn', 'start'], function () { ... })**
https://github.com/nodejitsu/haibu/blob/master/lib/haibu/core/spawner.js#L234-238

**haibu.on(['spawn', 'drone'], function () { ... })**
https://github.com/nodejitsu/haibu/blob/master/lib/haibu/core/spawner.js#L249

Both of these, however, are emitted before the drone is actually started. These two events should be coalesced into a single `['spawn', 'begin']` event and two additional event should be emitted in these two places

**['spawn', 'port']**
https://github.com/nodejitsu/haibu/blob/master/lib/haibu/core/spawner.js#L303

**['spawn', 'start']**
https://github.com/nodejitsu/haibu/blob/master/lib/haibu/core/spawner.js#L327