src/Rocketeer/Console/Commands/AbstractCommand.php
protected function fireTasksQueue($tasks)
    {
        $this->prepareEnvironment();

        // Fire tasks and events around them
        $status = $this->runWithBeforeAfterEvents(function () use ($tasks) {
            if ($this->straight) {
                return $this->builder->buildTask($tasks)->fire();
            }

            $pipeline = $this->queue->run($tasks);

            return $pipeline->succeeded();
        });

        // Remove command instance
        $this->container->remove('command');

        // Save history to logs
        $this->explainer->info('Saved logs to '.$this->logs->getLogsRealpath());

        return $status ? 0 : 1;
    }
protected function fireTasksQueue($tasks)
    {
        $this->prepareEnvironment();

        // Fire tasks and events around them
        $status = $this->runWithBeforeAfterEvents(function () use ($tasks) {
            if ($this->straight) {
                return $this->builder->buildTask($tasks)->fire();
            }

            $pipeline = $this->queue->run($tasks);

            return $pipeline->succeeded();
        });

        // Remove command instance
        $this->container->remove('command');

        // Save history to logs
        $this->explainer->info('Saved logs to '.$this->logs->getLogsRealpath());

        return $status ? 0 : 1;
    }
protected function fireTasksQueue ( $ tasks ) { $ this -> prepareEnvironment ( ) ; // Fire tasks and events around them $ status = $ this -> runWithBeforeAfterEvents ( function ( ) use ( $ tasks ) { if ( $ this -> straight ) { return $ this -> builder -> buildTask ( $ tasks ) -> fire ( ) ; } $ pipeline = $ this -> queue -> run ( $ tasks ) ; return $ pipeline -> succeeded ( ) ; } ) ; // Remove command instance $ this -> container -> remove ( 'command' ) ; // Save history to logs $ this -> explainer -> info ( 'Saved logs to ' . $ this -> logs -> getLogsRealpath ( ) ) ; return $ status ? 0 : 1 ; }
Fire a Tasks Queue.

@param string|string[]|Closure|Closure[]|\Rocketeer\Tasks\AbstractTask|\Rocketeer\Tasks\AbstractTask[] $tasks

@return int
Fire a Tasks Queue .