Deployer\Task\Task::isForStages PHP Méthode

isForStages() public méthode

Decide to run or not to run for these stages.
public isForStages ( $stages ) : boolean
$stages
Résultat boolean
    public function isForStages($stages)
    {
        if (empty($this->onlyForStage)) {
            return true;
        } else {
            return count(array_intersect((array) $stages, array_keys($this->onlyForStage))) > 0;
        }
    }