(inlineScript: string)
| 8 | static readonly tempDirectory: string = process.env.RUNNER_TEMP || os.tmpdir(); |
| 9 | |
| 10 | static async createScriptFile(inlineScript: string): Promise<string> { |
| 11 | const fileName: string = FileUtils.getFileName(); |
| 12 | const filePath: string = path.join(FileUtils.tempDirectory, fileName); |
| 13 | fs.writeFileSync(filePath, inlineScript, 'utf-8'); |
| 14 | return filePath; |
| 15 | } |
| 16 | |
| 17 | private static getFileName(): string { |
| 18 | return `${uuidv4()}.ps1`; |
no test coverage detected