Sha256: 1c5ceb894b7a68042039084945e78f77cf8055f16b85bc5e91605847b12f1d3d
Contents?: true
Size: 1.97 KB
Versions: 3
Compression:
Stored size: 1.97 KB
Contents
module Nucleus module Adapters module V1 class OpenshiftV2 < Stub # Semantic error messages that are specific for Openshift V2 module SemanticErrors # Get all Openshift V2 specific semantic error definitions. # @return [Hash<Symbol,Hash<Symbol,String>>] the error message definitions, including the error +code+, # e.g. +422_200_1+ and the +message+ that shall be formatted when used. def semantic_error_messages { # Error code '400_1': Only one runtime is allowed per Openshift V2 application only_one_runtime: { code: 422_400_1, message: 'Openshift V2 only allows 1 runtime per '\ 'application' }, must_have_runtime: { code: 422_400_2, message: 'Openshift V2 requires you to specify exactly one '\ 'runtime when creating the application. Please provide a valid runtime in the next request.' }, # Error code '400_3': Application is not scalable not_scalable: { code: 422_400_3, message: "Application '%s' is not scalable, "\ "instances can't be adjusted" }, # Error code '400_4': Quota exceeded, scaling would require more gears than available to the user insufficient_gears: { code: 422_400_4, message: "Application '%s' can't be, "\ 'scaled to %s instances, requires %s gears but only %s gears are available' }, no_user_domain: { code: 422_400_5, message: "Openshift V2 requires you to create a 'domain' before "\ 'any application can be created' }, ambiguous_runtime: { code: 422_400_6, message: 'Runtime could not be identified, there are multiple '\ "matches for '%s': %s" }, invalid_runtime: { code: 422_400_7, message: "Invalid runtime, could not identify cartridge for '%s'." } } end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems