Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createMacros () {
const src = path.resolve(__dirname, '../resources/macros.ejs')
const dest = path.join(process.env.HOME, '.rpmmacros')
this.options.logger(`Creating macros file at ${dest}`)
return common.wrapError('creating macros file', async () => common.createTemplatedFile(src, dest, { dir: this.stagingDir, ...this.options }))
}