tailDeployment static method
Future<void>
tailDeployment(
- Client cloudApiClient, {
- required CommandLogger logger,
- required String baseCommand,
- required String projectId,
- CommandNames commandNames = CommandNames.public,
- String? deploymentArg,
Implementation
static Future<void> tailDeployment(
final Client cloudApiClient, {
required final CommandLogger logger,
required final String baseCommand,
required final String projectId,
final CommandNames commandNames = CommandNames.public,
final String? deploymentArg,
}) async {
try {
final attemptId = await getDeployAttemptId(
cloudApiClient,
baseCommand: baseCommand,
commandNames: commandNames,
projectId: projectId,
deploymentArg: deploymentArg,
);
await StatusCommands.tailDeploymentStatus(
cloudApiClient,
logger: logger,
baseCommand: baseCommand,
commandNames: commandNames,
cloudCapsuleId: projectId,
attemptId: attemptId,
);
} on UserAbortException {
rethrow;
} on Exception catch (e, s) {
throw FailureException.nested(e, s, 'Failed to get deployment status');
}
}