This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// General app backbone. Start a sequence of services, arranged in dependency order, | |
// and attach to the app backbone. | |
const Q = require('q'); | |
// Start the app by completing a sequence of startup steps. | |
function start( steps ) { | |
// Convert steps to list of deferreds. | |
steps = steps.map( ( step ) => { | |
return ( app ) => { | |
// Convert step to list of deferred service steps. |