Gush\Helper\GitConfigHelper::ensureRemoteExists PHP Метод

ensureRemoteExists() публичный Метод

Ensure the remote exist for the org and repo.
public ensureRemoteExists ( string $org, string $repo )
$org string
$repo string
    public function ensureRemoteExists($org, $repo)
    {
        $adapter = $this->application->getAdapter();
        $pushUrl = $adapter->getRepositoryInfo($org, $repo)['push_url'];
        if (!$this->remoteExists($org, $pushUrl)) {
            $this->getHelperSet()->get('gush_style')->note(sprintf('Adding remote "%s" with "%s".', $org, $pushUrl));
            $this->setRemote($org, $pushUrl, $pushUrl);
        }
    }