maestro/app/compat/ConfigUnit.js
2020-06-06 17:43:31 -05:00

20 lines
480 B
JavaScript

const ConfigUnit = require('libflitter/config/ConfigUnit')
const path = require('path')
class CompatConfigUnit extends ConfigUnit {
/**
* Get the name of the service provided by this unit: 'services'
* @returns {string} - 'services'
*/
static get name() {
return 'configs'
}
constructor() {
const base_dir = path.resolve(__dirname, '..', '..', 'config')
super(base_dir)
}
}
module.exports = exports = CompatConfigUnit