| 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 |