mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
refactoring
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
interface Firewall
|
||||
{
|
||||
public function addRule(string $type, string $protocol, int $port, string $source, string $mask): void;
|
||||
public function addRule(string $type, string $protocol, int $port, string $source, ?string $mask): void;
|
||||
|
||||
public function removeRule(string $type, string $protocol, int $port, string $source, string $mask): void;
|
||||
public function removeRule(string $type, string $protocol, int $port, string $source, ?string $mask): void;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
interface SSHCommand
|
||||
{
|
||||
public function file(string $os): string;
|
||||
public function file(): string;
|
||||
|
||||
public function content(string $os): string;
|
||||
public function content(): string;
|
||||
}
|
||||
|
@ -8,11 +8,13 @@ public function connect(): bool;
|
||||
|
||||
public function getRepo(string $repo = null): mixed;
|
||||
|
||||
public function fullRepoUrl(string $repo): string;
|
||||
public function fullRepoUrl(string $repo, string $key): string;
|
||||
|
||||
public function deployHook(string $repo, array $events, string $secret): array;
|
||||
|
||||
public function destroyHook(string $repo, string $hookId): void;
|
||||
|
||||
public function getLastCommit(string $repo, string $branch): ?array;
|
||||
|
||||
public function deployKey(string $title, string $repo, string $key): void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user