ThinkDeepTech/thinkdeep

View on GitHub
packages/deep-microservice-collection/src/operation/operation.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Base class for operation instances.
 */
class Operation {
  /**
   * Check if the operation is in a valid state.
   */
  get valid() {
    throw new Error(`This hasn't been implemented yet.`);
  }

  /**
   * Get the container image to use.
   */
  get image() {
    throw new Error(`This hasn't been implemented yet.`);
  }

  /**
   * Get the commands to execute
   */
  get commands() {
    throw new Error(`This hasn't been implemented yet.`);
  }

  /**
   * Get the arguments to pass into the commands.
   */
  get args() {
    throw new Error(`This hasn't been implemented yet.`);
  }
}

export {Operation};