(index: number)
| 553 | |
| 554 | public async getUniqueCacheName (cwd: string, expanded: {[key: string]: string}, cacheIndex: number) { |
| 555 | const getCachePrefix = (index: number) => { |
| 556 | const prefix = this.jobData["cache"][index]["key"]["prefix"]; |
| 557 | if (prefix) { |
| 558 | return `${index}_${Utils.expandText(prefix, expanded)}-`; |
| 559 | } |
| 560 | |
| 561 | const filenames = this.jobData["cache"][index]["key"]["files"].map((p: string) => { |
| 562 | const expandP = Utils.expandText(p, expanded); |
| 563 | return expandP.split(".")[0]; |
| 564 | }).join("_"); |
| 565 | return `${index}_${filenames}-`; |
| 566 | }; |
| 567 | |
| 568 | const key = this.jobData["cache"][cacheIndex].key; |
| 569 |
nothing calls this directly
no test coverage detected