UNPKG

@spotinst/spinnaker-deck

Version:

Spinnaker-Deck service, forked with support to Spotinst

14 lines (11 loc) 400 B
const fs = require('fs'); const assertFileExists = (report, filename, pristineFilename = filename) => { const ok = fs.existsSync(filename); const resolution = { description: `restore ${filename} from scaffold defaults`, command: `npx restore-scaffold-file ${filename}`, }; report(`${filename} does not exist`, ok, resolution); return ok; }; module.exports = { assertFileExists };