/** * Created by ThuanLe on 1/13/2016. */ var hooks = function hooks() { var fs = require('fs'); var tmp = require('tmp'); this.Before(function () { var tmpObject = tmp.dirSync({unsafeCleanup: true}); this.tmpDir = fs.realpathSync(tmpObject.name); }); }
constructor(command, options) { options = options || {}; this.command = command; this.dir = options.dir || tmp.dirSync({unsafeCleanup: true}).name; this.cliPath = path.join(process.cwd(), 'bin', 'ghost'); }
createTempProject () { this.tempFolder = tmp.dirSync(); tmp.setGracefulCleanup(); logger.info('cordova-paramedic: creating temp project at ' + this.tempFolder.name); exec(this.config.getCli() + ' create ' + this.tempFolder.name + utilities.PARAMEDIC_COMMON_CLI_ARGS); return this.tempFolder; }
constructor(size = 20) { this.path = tmp.dirSync({ prefix: "judecache-", unsafeCleanup: true }).name; this.has = new Map(); this.size = size; }
const tmpobj = tmp.dirSync({unsafeCleanup:true}) tar.x({ file: tarballPathAbs,
dir = dir || tmp.dirSync({unsafeCleanup: true}).name;
const tmpdir = tmp.dirSync({ unsafeCleanup: true });
const tmpDirectory = tmp.dirSync() const tmpPaths = {} Object.keys(config.syft.tmpFiles)
d = tmp.dirSync({ unsafeCleanup: true })
const tmpDir = tmp.dirSync({ unsafeCleanup: true }); const tmpSrc = path.join(tmpDir.name, 'src');