group.add = function(id, command, opts) { if (typeof command !== 'function' && !Array.isArray(command)) return group.add(id, command.command, command); opts = xtend(defaults, opts); var mon = respawn(command, opts); var old = monitors[id]; mon.id = id; monitors[id] = mon; bootstrap(mon); finalize(old); return mon; };
client.add = function(id, opts, cb) { if (typeof opts === 'function') return client.add(id, null, opts); incref(cb, function(p, cb) { p.add(id, opts || {}, cb); }); };
async.filter(files, function (file, next) { appLoader.add(folder + file, expressApp, next); }, function (err, result) {