var GatewayProcessManager = require(__dirname+'/../process_manager.js');

/**
 * @function startGateway
 * @requires GatewayProcessManager
 * @description Starts gateway processes.
 * @param opts
 */

function startGateway(opts, fn) {
  processManager = new GatewayProcessManager();
  processManager.start(opts, function(err, processes){
    if(err){
      fn(err, null);
    } else {
      fn(null, processes);
    }
  });

}

module.exports = startGateway;

var GatewayProcessManager = require(__dirname+'/../process_manager.js');

/**
 * @function startGateway
 * @requires GatewayProcessManager
 * @description Starts gateway processes.
 * @param opts
 */

function startGateway(opts, fn) {
  processManager = new GatewayProcessManager();
  processManager.start(opts, function(err, processes){
    fn(null, processes);
  });

}

module.exports = startGateway;


Revert "[CHORE] fire callback with error or processes"
Revert "[CHORE] fire callback with error or processes"

This reverts commit 9a5fc4935bb6e755c4a242259bc416fa4acdad37.
