UNPKG

node_terminus

Version:

Pantheon Terminus cli wrapper and extensions

23 lines (19 loc) 618 B
const config = require('./../config') const fs = require('fs') const path = require('path') const mkdirp = require('mkdirp') const basepath = path.resolve(path.join(__dirname,'..','..','..','cache')) class Base { constructor() { this.name = "base" this.config = config if (typeof(process.env.MACHINE_TOKEN)==='undefined'){ process.env.MACHINE_TOKEN = '' this.config.machine_token = config.machine_token || '' } else { config.machine_token = process.env.MACHINE_TOKEN } this.config.base_path = config.base_path || path.resolve(process.env.PWD) } } module.exports = Base