Gush\Command\Branch\BranchRemoteAddCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $org = $input->getArgument('other_organization') ?: $this->getParameter($input, 'authentication')['username'];
        $repo = $input->getArgument('other_repository') ?: $input->getOption('repo');
        $remoteName = $input->getArgument('remote') ?: $org;
        $repoInfo = $this->getAdapter()->getRepositoryInfo($org, $repo);
        $this->getHelper('git_config')->setRemote($remoteName, $repoInfo['push_url']);
        $this->getHelper('gush_style')->success(sprintf('Added remote "%s" with "%s"', $remoteName, $repoInfo['push_url']));
        return self::COMMAND_SUCCESS;
    }
BranchRemoteAddCommand