Liip\RMT\Command\ReleaseCommand::executeActionListIfExist PHP Method

executeActionListIfExist() protected method

protected executeActionListIfExist ( $name, $title = null )
    protected function executeActionListIfExist($name, $title = null)
    {
        $actions = Context::getInstance()->getList($name);
        if (count($actions) > 0) {
            $this->getOutput()->writeSmallTitle($title ?: ucfirst($name));
            $this->getOutput()->indent();
            foreach ($actions as $num => $action) {
                $this->getOutput()->write(++$num . ') ' . $action->getTitle() . ' : ');
                $this->getOutput()->indent();
                $action->execute();
                $this->getOutput()->writeEmptyLine();
                $this->getOutput()->unIndent();
            }
            $this->getOutput()->unIndent();
        }
    }