MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / terraformDir

Function terraformDir

packages/cli/src/commands/cloudrun.ts:270–274  ·  view source on GitHub ↗

Resolve the Terraform module dir shipped with @hyperframes/gcp-cloud-run.

()

Source from the content-addressed store, hash-verified

268
269/** Resolve the Terraform module dir shipped with @hyperframes/gcp-cloud-run. */
270function terraformDir(): string {
271 const require = createRequire(import.meta.url);
272 const pkgJson = require.resolve("@hyperframes/gcp-cloud-run/package.json");
273 return join(dirname(pkgJson), "terraform");
274}
275
276function run(cmd: string, cmdArgs: string[], opts: { cwd?: string } = {}): void {
277 const res = spawnSync(cmd, cmdArgs, { stdio: "inherit", cwd: opts.cwd });

Callers 2

runDeployFunction · 0.85
runDestroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected