mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 16:02:34 +00:00
refactoring - remove unused code
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
|
||||
use App\Enums\SiteType;
|
||||
use App\Enums\SslStatus;
|
||||
use App\Events\Broadcast;
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Ssl;
|
||||
|
||||
@ -22,11 +21,6 @@ public function handle(): void
|
||||
$this->ssl->site->server->webserver()->handler()->setupSSL($this->ssl);
|
||||
$this->ssl->status = SslStatus::CREATED;
|
||||
$this->ssl->save();
|
||||
event(
|
||||
new Broadcast('deploy-ssl-finished', [
|
||||
'ssl' => $this->ssl,
|
||||
])
|
||||
);
|
||||
if ($this->ssl->site->type == SiteType::WORDPRESS) {
|
||||
$typeData = $this->ssl->site->type_data;
|
||||
$typeData['url'] = $this->ssl->site->url;
|
||||
@ -38,11 +32,6 @@ public function handle(): void
|
||||
|
||||
public function failed(): void
|
||||
{
|
||||
event(
|
||||
new Broadcast('deploy-ssl-failed', [
|
||||
'ssl' => $this->ssl,
|
||||
])
|
||||
);
|
||||
$this->ssl->delete();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user