mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
20 lines
233 B
JavaScript
20 lines
233 B
JavaScript
'use strict';
|
|
|
|
const _ = require('lodash');
|
|
|
|
class Config {
|
|
|
|
constructor(S, config) {
|
|
this.S = S;
|
|
|
|
if (config) this.update(config);
|
|
}
|
|
|
|
update(config) {
|
|
return _.merge(this, config);
|
|
}
|
|
}
|
|
|
|
module.exports = Config;
|
|
|