MCPcopy Index your code
hub / github.com/serverless/serverless / load

Method load

packages/serverless/lib/classes/service.js:32–43  ·  view source on GitHub ↗
(rawOptions)

Source from the content-addressed store, hash-verified

30 }
31
32 async load(rawOptions) {
33 const options = rawOptions || {}
34 if (!options.stage && options.s) options.stage = options.s
35 if (!options.region && options.r) options.region = options.r
36 const serviceDir = this.serverless.serviceDir
37
38 // skip if the service path is not found
39 // because the user might be creating a new service
40 if (!serviceDir) return
41
42 this.loadServiceFileParam()
43 }
44
45 loadServiceFileParam() {
46 // Not used internally, left set to not break plugins which depend on it

Callers 15

initMethod · 0.80
loadYamlFunction · 0.80
parseConfigurationFileFunction · 0.80
ensureValidBucketExistsFunction · 0.80
invoke.pyFile · 0.80
e2e.test.jsFile · 0.80
constructorMethod · 0.80
getDeploymentStateMethod · 0.80
deployMethod · 0.80
devMethod · 0.80
removeMethod · 0.80
executeCommandMethod · 0.80

Calls 1

loadServiceFileParamMethod · 0.95

Tested by 2

runTestFunction · 0.64
runComposeTestFunction · 0.64