Big update.

This commit is contained in:
Dan Cryer 2013-05-10 12:28:43 +01:00
commit 3647ac1cd8
26 changed files with 2924 additions and 8707 deletions

View file

@ -16,5 +16,23 @@ use PHPCI\Model\Base\ProjectBase;
*/
class Project extends ProjectBase
{
// This class has been left blank so that you can modify it - changes in this file will not be overwritten.
public function getGitUrl()
{
$key = $this->getGitKey();
switch($this->getType() . '.' . (!empty($key) ? 'ssh' : 'http'))
{
case 'github.ssh':
return 'git@github.com:' . $this->getReference() . '.git';
case 'github.http':
return 'https://github.com/' . $this->getReference() . '.git';
case 'bitbucket.ssh':
return 'git@bitbucket.org:' . $this->getReference() . '.git';
case 'bitbucket.http':
return 'https://bitbucket.org/' . $this->getReference() . '.git';
}
}
}