added ws authentication

This commit is contained in:
Luan Estradioto
2024-08-15 02:38:06 -03:00
parent c2ea8996ee
commit 548fc21e40
6 changed files with 238 additions and 161 deletions

View File

@@ -29,7 +29,10 @@ class RunCommand extends Component
}
return $server->definedResources()
->filter(fn ($resource) => str_starts_with($resource->status, 'running:'))
->filter(function ($resource) {
$status = method_exists($resource, 'realStatus') ? $resource->realStatus() : (method_exists($resource, 'status') ? $resource->status() : 'exited');
return str_starts_with($status, 'running:');
})
->map(function ($resource) use ($server) {
$container_name = $resource->uuid;