fix: service navbar using new realtime events

This commit is contained in:
Andras Bacsai
2023-12-08 12:12:44 +01:00
parent 86c2415210
commit b55bd298f2
16 changed files with 107 additions and 33 deletions

View File

@@ -24,6 +24,7 @@ function remote_process(
?string $type_uuid = null,
?Model $model = null,
bool $ignore_errors = false,
$callEventOnFinish = null
): Activity {
if (is_null($type)) {
$type = ActivityTypes::INLINE->value;
@@ -47,18 +48,12 @@ function remote_process(
type: $type,
type_uuid: $type_uuid,
model: $model,
ignore_errors: $ignore_errors
ignore_errors: $ignore_errors,
call_event_on_finish: $callEventOnFinish,
),
])();
}
// function removePrivateKeyFromSshAgent(Server $server)
// {
// if (data_get($server, 'privateKey.private_key') === null) {
// throw new \Exception("Server {$server->name} does not have a private key");
// }
// // processWithEnv()->run("echo '{$server->privateKey->private_key}' | ssh-add -d -");
// }
function savePrivateKeyToFs(Server $server)
{
if (data_get($server, 'privateKey.private_key') === null) {