mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 22:15:35 +00:00
refactor(actions): standardize method naming for network and configuration deletion across application and service classes
This commit is contained in:
1 parent
ed0961e0dc
commit
019ed43448
24 files changed
+123
-117
No files matched your search
@@ -166,7 +166,7 @@ class Service extends BaseModel
|
||||
}
|
||||
}
|
||||
|
||||
public function delete_configurations()
|
||||
public function deleteConfigurations()
|
||||
{
|
||||
$server = data_get($this, 'destination.server');
|
||||
$workdir = $this->workdir();
|
||||
@@ -175,11 +175,11 @@ class Service extends BaseModel
|
||||
}
|
||||
}
|
||||
|
||||
public function delete_connected_networks($uuid)
|
||||
public function deleteConnectedNetworks()
|
||||
{
|
||||
$server = data_get($this, 'destination.server');
|
||||
instant_remote_process(["docker network disconnect {$uuid} coolify-proxy"], $server, false);
|
||||
instant_remote_process(["docker network rm {$uuid}"], $server, false);
|
||||
instant_remote_process(["docker network disconnect {$this->uuid} coolify-proxy"], $server, false);
|
||||
instant_remote_process(["docker network rm {$this->uuid}"], $server, false);
|
||||
}
|
||||
|
||||
public function getStatusAttribute()
|
||||
|
||||
Reference in new issue
Block a user