Deployer\Task\Task::isForStages PHP Method

isForStages() public method

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