Skip to content

Commit

Permalink
Update in finisher status
Browse files Browse the repository at this point in the history
  • Loading branch information
lecid committed May 2, 2024
1 parent 90755b2 commit 8985b1c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ en:
messages:
not_root: "This operation need to be run as root (use sudo or rvmsudo)"
options_incompatibility: "Options incompatibility"
service_dependence_missing: "Appifier Service dependence missing"
missing_service_dependency: "Missing Service dependency"
config_required: "Specific configuration required"
setup_error: "Setup terminated unsuccessfully"
setup_success: "Setup terminated successfully"
Expand All @@ -43,6 +43,7 @@ en:
bad_request: "Bad request"
created: "Content Successfully created"
accepted: "Request accepted"
not_implemented: "Not yet implemented"
bad_usage: "Case must be a return or an exit"
setup:
error: "Setup operation failed"
Expand Down
3 changes: 2 additions & 1 deletion config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fr:
messages:
not_root: "L'opération doit être lancée en root (utiliser sudo ou rvmsudo)"
options_incompatibility: "Options incompatibles"
service_dependence_missing: "Service Carioca, dépendence manquante"
missing_service_dependency: "Service Carioca, dépendence manquante"
config_required: "Configuration spécifique requise"
setup_error: "Setup terminé avec succès"
setup_success: "Setup terminé en échec"
Expand All @@ -43,6 +43,7 @@ fr:
bad_request: "Requête incorrecte"
created: "Contenu créé avec succès"
accepted: "Requête acceptée"
not_implemented: "Pas encore implémenté"
bad_usage: "return_case et exit_case sont incompatibles"
setup:
error: "Opération en echec durant le setup"
Expand Down
5 changes: 3 additions & 2 deletions lib/carioca/services/finisher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Finisher
# global
not_root: { code: 40, key: 'finisher.messages.not_root' },
options_incompatibility: { code: 410, key: 'finisher.messages.options_incompatibility' },
service_dependence_missing: { code: 430, key: 'finisher.messages.service_dependence_missing' },
missing_service_dependency: { code: 430, key: 'finisher.messages.missing_service_dependency' },
config_required: { code: 420, key: 'finisher.messages.config_required' },
setup_error: { code: 520, key: 'finisher.messages.setup_error' },
setup_success: { code: 0, key: 'finisher.messages.setup_success' },
Expand All @@ -49,7 +49,8 @@ class Finisher
accepted: { code: 202, key: 'finisher.messages.accepted' },
bad_request: { code: 400, key: 'finisher.messages.bad_request' },
status_ko: { code: 500, key: 'finisher.messages.status_ko' },
no_content: { code: 204, key: 'finisher.messages.no_content' }
no_content: { code: 204, key: 'finisher.messages.no_content' },
not_implemented: { code: 210, key: 'finisher.messages.not_implemented' },
}.freeze

def initialize
Expand Down

0 comments on commit 8985b1c

Please sign in to comment.