lib/cicd/builder/mixlib/errors.rb in cicd-builder-0.9.23 vs lib/cicd/builder/mixlib/errors.rb in cicd-builder-0.9.25

- old
+ new

@@ -5,8 +5,43 @@ class Unknown < StandardError ; end class Internal < Unknown ; end class InvalidVersion < Unknown ; end class InvalidVersionConstraint < Unknown ; end + i = 10 + ARTIFACT_UPLOAD_EXCEPTION = i+=1 + MAKEBUILD_EXCEPTION = i+=1 + MAKEBUILD_PREPARATION = i+=1 + MISSING_ENV_VAR = i+=1 + PREPAREBUILD_EXCEPTION = i+=1 + PARSING_LATEST_VERSION = i+=1 + PARSING_BUILD_CHECKSUM = i+=1 + STORING_BUILD_CHECKSUM = i+=1 + INVALID_WORKSPACE = i+=1 + CLEANUPBUILD_EXCEPTION = i+=1 + REPO_DIR = i+=1 + WORKSPACE_DIR = i+=1 + NO_COMPONENTS = i+=1 + MANIFEST_EMPTY = i+=1 + MANIFEST_WRITE = i+=1 + MANIFEST_DELETE = i+=1 + INVENTORY_UPLOAD_EXCEPTION = i+=1 + STORING_BUILD_METADATA = i+=1 + BUILDER_REPO_TYPE = i+=1 + BUILD_DIR = i+=1 + BUCKET = i+=1 + BAD_ARTIFACTS = i+=1 + ARTIFACT_NOT_FOUND = i+=1 + SAVE_LATEST_VARS = i+=1 + SAVE_ENVIRONMENT_VARS = i+=1 + NO_ARTIFACTS = i+=1 + + require 'awesome_print' + + MAP = {} + constants.each do |c| + MAP[const_get(c)] = c.to_s + end + end end end \ No newline at end of file