mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
39 lines
674 B
PHP
39 lines
674 B
PHP
<?php
|
|
|
|
namespace App\StorageProviders;
|
|
|
|
use App\Models\Server;
|
|
use App\SSH\Storage\Storage;
|
|
|
|
class Local extends AbstractStorageProvider
|
|
{
|
|
public function validationRules(): array
|
|
{
|
|
return [
|
|
'path' => 'required',
|
|
];
|
|
}
|
|
|
|
public function credentialData(array $input): array
|
|
{
|
|
return [
|
|
'path' => $input['path'],
|
|
];
|
|
}
|
|
|
|
public function connect(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function ssh(Server $server): Storage
|
|
{
|
|
return new \App\SSH\Storage\Local($server, $this->storageProvider);
|
|
}
|
|
|
|
public function delete(array $paths): void
|
|
{
|
|
//
|
|
}
|
|
}
|