src/Rocketeer/Services/Tasks/TasksHandler.php
public function task($name, $task = null, $description = null)
    {
        return $this->add($task, $name, $description)->getTask();
    }
public function task($name, $task = null, $description = null)
    {
        return $this->add($task, $name, $description)->getTask();
    }
public function task ( $ name , $ task = null , $ description = null ) { return $ this -> add ( $ task , $ name , $ description ) -> getTask ( ) ; }
Register a task with Rocketeer.

@param string                                            $name
@param string|Closure|\Rocketeer\Tasks\AbstractTask|null $task
@param string|null                                       $description

@return BaseTaskCommand
Register a task with Rocketeer .