src/Rocketeer/Services/Tasks/TasksQueue.php
public function getStages($connection)
    {
        $this->connections->setCurrentConnection($connection);

        $stage = $this->config->getContextually('stages.default');
        if ($this->hasCommand()) {
            $stage = $this->getOption('stage') ?: $stage;
        }

        // Return all stages if "all"
        if ($stage === 'all' || !$stage) {
            $stage = $this->connections->getAvailableStages();
        }

        // Sanitize and filter
        $stages = (array) $stage;
        $stages = array_filter($stages, [$this, 'isValidStage']);

        return $stages ?: [null];
    }
public function getStages($connection)
    {
        $this->connections->setCurrentConnection($connection);

        $stage = $this->config->getContextually('stages.default');
        if ($this->hasCommand()) {
            $stage = $this->getOption('stage') ?: $stage;
        }

        // Return all stages if "all"
        if ($stage === 'all' || !$stage) {
            $stage = $this->connections->getAvailableStages();
        }

        // Sanitize and filter
        $stages = (array) $stage;
        $stages = array_filter($stages, [$this, 'isValidStage']);

        return $stages ?: [null];
    }
public function getStages ( $ connection ) { $ this -> connections -> setCurrentConnection ( $ connection ) ; $ stage = $ this -> config -> getContextually ( 'stages.default' ) ; if ( $ this -> hasCommand ( ) ) { $ stage = $ this -> getOption ( 'stage' ) ? : $ stage ; } // Return all stages if "all" if ( $ stage === 'all' || ! $ stage ) { $ stage = $ this -> connections -> getAvailableStages ( ) ; } // Sanitize and filter $ stages = ( array ) $ stage ; $ stages = array_filter ( $ stages , [ $ this , 'isValidStage' ] ) ; return $ stages ? : [ null ] ; }
Get the stages of a connection.

@param string $connection

@return array
Get the stages of a connection .