refactoring leftovers

This commit is contained in:
Saeed Vaziry
2024-03-14 21:18:59 +01:00
parent 428140b931
commit f907bacdd0
22 changed files with 26 additions and 173 deletions

View File

@ -1,9 +0,0 @@
<?php
namespace App\Exceptions;
use Exception;
class BackupFileException extends Exception
{
}

View File

@ -1,10 +0,0 @@
<?php
namespace App\Exceptions;
use Exception;
class CannotDeployKey extends Exception
{
//
}

View File

@ -1,10 +0,0 @@
<?php
namespace App\Exceptions;
use Exception;
class ComposerInstallFailed extends Exception
{
//
}

View File

@ -1,10 +0,0 @@
<?php
namespace App\Exceptions;
use Exception;
class ErrorUpdatingRedirects extends Exception
{
//
}

View File

@ -1,10 +0,0 @@
<?php
namespace App\Exceptions;
use Exception;
class FailedToInstallWordpress extends Exception
{
//
}

View File

@ -1,10 +0,0 @@
<?php
namespace App\Exceptions;
use Exception;
class ProcessFailed extends Exception
{
//
}

View File

@ -72,6 +72,6 @@ public function path(): string
public function storagePath(): string
{
return '/'.$this->name.'.zip';
return '/'.$this->backup->database->name.'/'.$this->name.'.zip';
}
}

View File

@ -63,10 +63,6 @@ public function deploySSHKey(string $key): void
public function deleteSSHKey(string $key): void
{
info($this->getScript('delete-ssh-key.sh', [
'key' => $key,
'user' => $this->server->getSshUser(),
]));
$this->server->ssh()->exec(
$this->getScript('delete-ssh-key.sh', [
'key' => $key,