()
| 63 | } |
| 64 | |
| 65 | save(): void { |
| 66 | // conditionally create the deploy history folder |
| 67 | fs.mkdir(this.folderName, (err) => { |
| 68 | if (err && err.code !== 'EEXIST') throw err; |
| 69 | }); |
| 70 | |
| 71 | const allOutput = { |
| 72 | deployer: this.deployer, |
| 73 | config: this.config, |
| 74 | contracts: this.contracts, |
| 75 | actions: this.actions, |
| 76 | }; |
| 77 | |
| 78 | fs.writeFileSync(this.fileName, JSON.stringify(allOutput)); |
| 79 | fs.writeFileSync(this.latestFileName, JSON.stringify(allOutput)); |
| 80 | } |
| 81 | } |
no outgoing calls
no test coverage detected