How to use the ern-orchestrator.Ensure.isNewerContainerVersion function in ern-orchestrator

To help you get started, we’ve selected a few ern-orchestrator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electrode-io / electrode-native / ern-local-cli / src / lib / logErrorAndExitIfNotSatisfied.ts View on Github external
kaxTask = kax.task(
        `Ensuring that ${
          isValidContainerVersion.containerVersion
        } is a valid Container version`
      )
      Ensure.isValidContainerVersion(
        isValidContainerVersion.containerVersion,
        isValidContainerVersion.extraErrorMessage
      )
      kaxTask.succeed()
    }
    if (isNewerContainerVersion) {
      kaxTask = kax.task(
        'Ensuring that container version is newer compared to the current one'
      )
      await Ensure.isNewerContainerVersion(
        isNewerContainerVersion.descriptor,
        isNewerContainerVersion.containerVersion,
        isNewerContainerVersion.extraErrorMessage
      )
      kaxTask.succeed()
    }
    if (noGitOrFilesystemPath) {
      kaxTask = kax.task(
        'Ensuring that not git or file system path(s) is/are used'
      )
      Ensure.noGitOrFilesystemPath(
        noGitOrFilesystemPath.obj,
        noGitOrFilesystemPath.extraErrorMessage
      )
      kaxTask.succeed()
    }