tailDeployment static method

Future<void> tailDeployment(
  1. Client cloudApiClient, {
  2. required CommandLogger logger,
  3. required String baseCommand,
  4. required String projectId,
  5. CommandNames commandNames = CommandNames.public,
  6. 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');
  }
}