server->ipv4 ?? $this->server->ipv6) ->usePassword($this->rootPassword) ->disableStrictHostKeyChecking() ->setTimeout(5) ->execute('echo "Connected"'); if (! $process->isSuccessful()) { $this->release(15); return; } $this->server->update([ 'status' => ServerStatus::UNPROVISIONED, ]); dispatch(new ProvisionServer($this->server, $this->rootPassword, $this->sudoPassword)); } public function failed(\Throwable $exception): void { $this->server->update([ 'status' => ServerStatus::PROVIDER_TIMEOUT, ]); } }