Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function ensureCreds() {
try {
readArc()
}
catch(e) {
if (e.message === 'not_found') {
console.log(chalk.grey('.------------------------------.'))
console.log(chalk.grey('|'), chalk.bold.yellow('Warning'), chalk.yellow('.arc file not found!'), chalk.grey('|'))
console.log(chalk.grey('|'), chalk.grey('Generate by running'), chalk.bold.green('arc init'), chalk.grey('|'))
console.log(chalk.grey('\'------------------------------\''))
}
}
// always ensure NODE_ENV
if (!process.env.NODE_ENV)
process.env.NODE_ENV = 'testing'
// always ensure AWS_REGION
if (!process.env.AWS_REGION)
console.log(chalk.grey('.------------------------------.'))
console.log(chalk.grey('|'), chalk.bold.yellow('Warning'), chalk.yellow('.arc file not found!'), chalk.grey('|'))
console.log(chalk.grey('|'), chalk.grey('Generate by running'), chalk.bold.green('arc init'), chalk.grey('|'))
console.log(chalk.grey('\'------------------------------\''))
}
}
// always ensure NODE_ENV
if (!process.env.NODE_ENV)
process.env.NODE_ENV = 'testing'
// always ensure AWS_REGION
if (!process.env.AWS_REGION)
process.env.AWS_REGION = 'us-west-2'
initAWS() // Load AWS creds
}
module.exports = function maybeBanner() {
let version = `Architect ${ver}`
try {
utils.readArc()
utils.banner({version})
if (process.env.INITIALIZED) {
let update = utils.updater('Create')
update.done('Created Architect project manifest (.arc)')
}
}
catch(e) {
console.log(e)
}
}
module.exports = function maybeBanner() {
let version = `Architect ${ver}`
try {
utils.readArc()
utils.banner({version})
if (process.env.INITIALIZED) {
let update = utils.updater('Create')
update.done('Created Architect project manifest (.arc)')
}
}
catch(e) {
console.log(e)
}
}
module.exports = function maybeBanner() {
let version = `Architect ${ver}`
try {
utils.readArc()
utils.banner({version})
if (process.env.INITIALIZED) {
let update = utils.updater('Create')
update.done('Created Architect project manifest (.arc)')
}
}
catch(e) {
console.log(e)
}
}
function writeStaticManifest(callback) {
fingerprinter({fingerprint, ignore}, callback)
},