Big update.
This commit is contained in:
parent
dd59bff838
commit
3647ac1cd8
26 changed files with 2924 additions and 8707 deletions
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue