From e3e5c69efa03a69e8cb08e6e21375695b7494631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20L=C3=B3pez?= Date: Wed, 18 Apr 2018 09:48:00 +0200 Subject: Small rename to api params name --- lib/api/runner.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/api/runner.rb b/lib/api/runner.rb index e50d995ecf6..c89c8fc6dd1 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -3,7 +3,7 @@ module API helpers ::API::Helpers::Runner helpers do - params :optional_runner_register_params_ce do + params :optional_runner_create_params_ce do optional :description, type: String, desc: %q(Runner's description) optional :info, type: Hash, desc: %q(Runner's metadata) optional :locked, type: Boolean, desc: 'Should Runner be locked for current project' @@ -12,8 +12,8 @@ module API optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job' end - params :runner_register_params do - use :optional_runner_register_params_ce + params :runner_create_params do + use :optional_runner_create_params_ce end end @@ -24,7 +24,7 @@ module API end params do requires :token, type: String, desc: 'Registration token' - use :runner_register_params + use :runner_create_params end post '/' do runner = -- cgit v1.2.1