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);
        }
    }
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);
        }
    }
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 ) ; } }
Ensure the remote exist for the org and repo.

@param string $org
@param string $repo
Ensure the remote exist for the org and repo .