mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 18:31:36 +00:00
42 lines
850 B
PHP
Executable File
42 lines
850 B
PHP
Executable File
<?php
|
|
|
|
namespace App\SourceControlProviders;
|
|
|
|
class Custom extends AbstractSourceControlProvider
|
|
{
|
|
public function connect(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function getRepo(string $repo = null): string
|
|
{
|
|
return '';
|
|
}
|
|
|
|
public function fullRepoUrl(string $repo, string $key): string
|
|
{
|
|
return $repo;
|
|
}
|
|
|
|
public function deployHook(string $repo, array $events, string $secret): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function destroyHook(string $repo, string $hookId): void
|
|
{
|
|
// TODO: Implement destroyHook() method.
|
|
}
|
|
|
|
public function getLastCommit(string $repo, string $branch): ?array
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public function deployKey(string $title, string $repo, string $key): void
|
|
{
|
|
// TODO: Implement deployKey() method.
|
|
}
|
|
}
|