mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
15 lines
439 B
JavaScript
15 lines
439 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
getServiceState() {
|
|
const stateFileName = this.provider.naming.getServiceStateFileName();
|
|
const servicePath = this.serverless.config.servicePath;
|
|
const packageDirName = this.options.package || '.serverless';
|
|
|
|
const stateFilePath = path.join(servicePath, packageDirName, stateFileName);
|
|
return this.serverless.utils.readFileSync(stateFilePath);
|
|
},
|
|
};
|