Cleans up tests.

This commit is contained in:
Joao Patricio
2023-03-31 17:54:55 +01:00
parent cd31ec8db1
commit a642cc2470
3 changed files with 9 additions and 19 deletions

View File

@@ -23,7 +23,9 @@ if (!function_exists('remoteProcess')) {
?string $deployment_uuid = null,
?Model $model = null,
): Activity {
$command_string = implode("\n", $command);
// @TODO: Check if the user has access to this server
// checkTeam($server->team_id);
@@ -31,7 +33,6 @@ if (!function_exists('remoteProcess')) {
return resolve(DispatchRemoteProcess::class, [
'remoteProcessArgs' => new RemoteProcessArgs(
model: $model,
server_ip: $server->ip,
private_key_location: $private_key_location,
deployment_uuid: $deployment_uuid,
@@ -41,6 +42,7 @@ if (!function_exists('remoteProcess')) {
port: $server->port,
user: $server->user,
type: $deployment_uuid ? ActivityTypes::DEPLOYMENT->value : ActivityTypes::REMOTE_PROCESS->value,
model: $model,
),
])();
}