public function getBaseUrl()

in src/TestUtils/GcloudWrapper/CloudFunction.php [216:232]


    public function getBaseUrl($force = false, $retries = 3)
    {
        if ($this->functionSignatureType !== 'http') {
            return '';
        }

        if (!$this->deployed && !$force) {
            throw new \RuntimeException('The function has not been deployed.');
        }

        if (empty($this->url)) {
            $cmd = $this->gcloudCommand(['describe', $this->functionName, '--format=value(httpsTrigger.url)']);
            $this->url = trim($this->runWithRetry($cmd, $retries));
        }

        return $this->url;
    }