mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
20 lines
342 B
JavaScript
20 lines
342 B
JavaScript
'use strict';
|
|
|
|
const _ = require('lodash');
|
|
const path = require('path');
|
|
|
|
class Config {
|
|
constructor(serverless, config) {
|
|
this.serverless = serverless;
|
|
this.serverlessPath = path.join(__dirname, '..');
|
|
|
|
if (config) this.update(config);
|
|
}
|
|
|
|
update(config) {
|
|
return _.merge(this, config);
|
|
}
|
|
}
|
|
|
|
module.exports = Config;
|