(deployId: string)
| 208 | |
| 209 | // Make sure deploy exists and has an expected status. |
| 210 | private async checkDeployCreated(deployId: string) { |
| 211 | try { |
| 212 | const deployInfo = await this.apiClient.getDeploy(deployId); |
| 213 | if (deployInfo.status !== "created") { |
| 214 | throw new CliError(`Deploy ${deployId} has an unexpected status: ${deployInfo.status}`); |
| 215 | } |
| 216 | return deployInfo; |
| 217 | } catch (error) { |
| 218 | if (isHttpError(error)) { |
| 219 | throw new CliError(`Deploy ${deployId} not found.`, { |
| 220 | cause: error |
| 221 | }); |
| 222 | } |
| 223 | throw error; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | // Get the deploy config, updating if necessary. |
| 228 | private async getUpdatedDeployConfig() { |
no test coverage detected