index.js
function getTask(name) {
  if (!this.tasks[name]) {
    log.error(new Error('Task "' + name + '" is not registered.'));
    return null;
  }
  return this.tasks[name];
}
function getTask(name) {
  if (!this.tasks[name]) {
    log.error(new Error('Task "' + name + '" is not registered.'));
    return null;
  }
  return this.tasks[name];
}
function getTask ( name ) { if ( ! this . tasks [ name ] ) { log . error ( new Error ( 'Task "' + name + '" is not registered.' ) ) ; return null ; } return this . tasks [ name ] ; }
Returns registered task
@param {string} name Registered task name
@return {object|null} Damson task object
Returns registered task