getAdapter() public method

Get the Repository adapter.
public getAdapter ( ) : Gush\Adapter\Adapter
return Gush\Adapter\Adapter
Example #1
0
 /**
  * Ensure the remote exist for the org and repo.
  *
  * @param string $org
  * @param string $repo
  */
 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);
     }
 }