Module: Nucleus::Adapters::V1::OpenshiftV2::SemanticErrors
- Included in:
- Nucleus::Adapters::V1::OpenshiftV2
- Defined in:
- lib/nucleus/adapters/v1/openshift_v2/semantic_errors.rb
Overview
Semantic error messages that are specific for Openshift V2
Instance Method Summary collapse
-
#semantic_error_messages ⇒ Hash<Symbol,Hash<Symbol,String>>
Get all Openshift V2 specific semantic error definitions.
Instance Method Details
#semantic_error_messages ⇒ Hash<Symbol,Hash<Symbol,String>>
Get all Openshift V2 specific semantic error definitions.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/nucleus/adapters/v1/openshift_v2/semantic_errors.rb', line 10 def { # 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 |