Liip\RMT\Action\VcsPublishAction::getInformationRequests PHP Method

getInformationRequests() public method

    public function getInformationRequests()
    {
        $requests = array();
        if ($this->options['ask-confirmation']) {
            $requests[] = new InformationRequest(self::AUTO_PUBLISH_OPTION, array('description' => 'Changes will be published automatically', 'type' => 'yes-no', 'interactive' => false));
        }
        if ($this->options['ask-remote-name']) {
            $requests[] = new InformationRequest('remote', array('description' => 'Remote to push changes', 'type' => 'text', 'default' => 'origin'));
        }
        return $requests;
    }