How to use the ern-orchestrator.Ensure.checkIfCodePushOptionsAreValid 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.succeed()
    }
    if (isValidElectrodeNativeModuleName) {
      kaxTask = kax.task('Ensuring that Electrode Native module name is valid')
      await Ensure.isValidElectrodeNativeModuleName(
        isValidElectrodeNativeModuleName.name,
        isValidElectrodeNativeModuleName.extraErrorMessage
      )
      kaxTask.succeed()
    }
    if (checkIfCodePushOptionsAreValid) {
      kaxTask = kax.task(
        'Ensuring that preconditions for code-push command are valid'
      )
      Ensure.checkIfCodePushOptionsAreValid(
        checkIfCodePushOptionsAreValid.descriptors,
        checkIfCodePushOptionsAreValid.targetBinaryVersion,
        checkIfCodePushOptionsAreValid.semVerDescriptor,
        checkIfCodePushOptionsAreValid.extraErrorMessage
      )
      kaxTask.succeed()
    }
    if (pathExist) {
      kaxTask = kax.task('Ensuring that path exist')
      await Ensure.pathExist(pathExist.p)
      kaxTask.succeed()
    }
    if (isFilePath) {
      kaxTask = kax.task('Ensuring that path is a file path')
      await Ensure.isFilePath(isFilePath.p, isFilePath.extraErrorMessage)
      kaxTask.succeed()