Ejemplo n.º 1
0
	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;
	};
Ejemplo n.º 2
0
Archivo: client.js Proyecto: imclab/hms
	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);
		});
	};
Ejemplo n.º 3
0
 async.filter(files, function (file, next) {
   appLoader.add(folder + file, expressApp, next);
 }, function (err, result) {