src/Rocketeer/Services/Tasks/TasksHandler.php
public function add($task, $name = null, $description = null)
    {
        // Build task if necessary
        $task = $this->builder->buildTask($task, $name, $description);
        $this->container->add('rocketeer.'.$task->getIdentifier(), $task);

        // Add related command
        $bound = $this->command($task->getSlug(), new BaseTaskCommand($task));

        return $bound;
    }
public function add($task, $name = null, $description = null)
    {
        // Build task if necessary
        $task = $this->builder->buildTask($task, $name, $description);
        $this->container->add('rocketeer.'.$task->getIdentifier(), $task);

        // Add related command
        $bound = $this->command($task->getSlug(), new BaseTaskCommand($task));

        return $bound;
    }
public function add ( $ task , $ name = null , $ description = null ) { // Build task if necessary $ task = $ this -> builder -> buildTask ( $ task , $ name , $ description ) ; $ this -> container -> add ( 'rocketeer.' . $ task -> getIdentifier ( ) , $ task ) ; // Add related command $ bound = $ this -> command ( $ task -> getSlug ( ) , new BaseTaskCommand ( $ task ) ) ; return $ bound ; }
Register a custom task or command with Rocketeer.

@param string|Closure|AbstractTask $task
@param string|null                 $name
@param string|null                 $description

@return BaseTaskCommand
Register a custom task or command with Rocketeer .