index.js
function run(task_name, options, driver_name) {
  var task = this.tasks[task_name];
  if (!task) {
    log.error(new Error('Task "' + task_name + '" is not registered.'));
    return;
  }
  var driver = this.drivers[driver_name];
  if (!driver) {
    log.error(new Error('Driver "' + driver_name + '" is not registered.'));
    return;
  }

  return task.run(driver, options);
}
function run(task_name, options, driver_name) {
  var task = this.tasks[task_name];
  if (!task) {
    log.error(new Error('Task "' + task_name + '" is not registered.'));
    return;
  }
  var driver = this.drivers[driver_name];
  if (!driver) {
    log.error(new Error('Driver "' + driver_name + '" is not registered.'));
    return;
  }

  return task.run(driver, options);
}
function run ( task_name , options , driver_name ) { var task = this . tasks [ task_name ] ; if ( ! task ) { log . error ( new Error ( 'Task "' + task_name + '" is not registered.' ) ) ; return ; } var driver = this . drivers [ driver_name ] ; if ( ! driver ) { log . error ( new Error ( 'Driver "' + driver_name + '" is not registered.' ) ) ; return ; } return task . run ( driver , options ) ; }
Runs task through selected driver
@param {string} task_name registered task name
@param {object} options task options
@param {string} driver_name registered driver name
@return {Promise}
Runs task through selected driver