public function delete()

in src/TestUtils/GcloudWrapper/CloudRun.php [152:172]


    public function delete($options = [])
    {
        // Set default optioins
        $options = array_merge([
            'retries' => 3,
        ], $options);
        $cmd = sprintf(
            'gcloud beta %s services delete %s%s --platform %s --project %s',
            self::GCLOUD_COMPONENT,
            $this->service,
            $this->region ? sprintf(' --region %s', $this->region) : '',
            $this->platform,
            $this->project
        );
        $ret = $this->execWithRetry($cmd, $options['retries']);
        if ($ret) {
            $this->deployed = false;
        }

        return $ret;
    }