rector: arrrrr

This commit is contained in:
Andras Bacsai
2025-01-07 14:52:08 +01:00
parent c702ebff6d
commit 16c0cd10d8
349 changed files with 4204 additions and 3712 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Actions\Application;
use App\Actions\Server\CleanupDocker;
use App\Models\Application;
use Exception;
use Lorisleiva\Actions\Concerns\AsAction;
class StopApplication
@@ -23,7 +24,7 @@ class StopApplication
if ($server->isSwarm()) {
instant_remote_process(["docker stack rm {$application->uuid}"], $server);
return;
return null;
}
$containersToStop = $application->getContainersToStop($previewDeployments);
@@ -36,8 +37,10 @@ class StopApplication
if ($dockerCleanup) {
CleanupDocker::dispatch($server, true);
}
} catch (\Exception $e) {
} catch (Exception $e) {
return $e->getMessage();
}
return null;
}
}