activity = activity() ->withProperties([ 'type' => 'COOLIFY_PROCESS', 'user' => $this->user, 'destination' => $this->destination, 'port' => $this->port, 'command' => $this->command, 'status' => ProcessStatus::HOLDING, ]) ->log("Awaiting to start command...\n\n"); } public function __invoke(): Activity|ProcessResult { $job = new ExecuteCoolifyProcess($this->activity); if (app()->environment('testing')) { return $job->handle(); } dispatch($job); return $this->activity; } }