lambda-live-debugger
Version:
Debug Lambda functions locally like it is running in the cloud
36 lines (35 loc) • 811 B
JavaScript
import { exec } from 'child_process';
import { promisify } from 'util';
import { TerraformFramework } from './terraformFramework.mjs';
export const execAsync = promisify(exec);
/**
* Support for Terraform framework
*/
export class OpenTofuFramework extends TerraformFramework {
/**
* Framework name
*/
get name() {
return 'opentofu';
}
/**
* Name of the framework in logs
*/
get logName() {
return 'OpenTofu';
}
/**
* Get OpenTofu state CI command
*/
get stateCommand() {
return 'tofu show --json';
}
/**
*
* @returns Get command to check if OpenTodu is installed
*/
get checkInstalledCommand() {
return 'tofu --version';
}
}
export const openTofuFramework = new OpenTofuFramework();