chore(deletion): rename isDeleteOperation to deleteConnectedNetworks
This commit is contained in:
@@ -14,7 +14,7 @@ class StopService
|
|||||||
|
|
||||||
public string $jobQueue = 'high';
|
public string $jobQueue = 'high';
|
||||||
|
|
||||||
public function handle(Service $service, bool $isDeleteOperation = false, bool $dockerCleanup = true)
|
public function handle(Service $service, bool $deleteConnectedNetworks = false, bool $dockerCleanup = true)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$server = $service->destination->server;
|
$server = $service->destination->server;
|
||||||
@@ -36,7 +36,7 @@ class StopService
|
|||||||
$this->stopContainersInParallel($containersToStop, $server);
|
$this->stopContainersInParallel($containersToStop, $server);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isDeleteOperation) {
|
if ($deleteConnectedNetworks) {
|
||||||
$service->deleteConnectedNetworks();
|
$service->deleteConnectedNetworks();
|
||||||
}
|
}
|
||||||
if ($dockerCleanup) {
|
if ($dockerCleanup) {
|
||||||
|
Reference in New Issue
Block a user