summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-04-18 09:48:00 +0200
committerFrancisco Javier López <fjlopez@gitlab.com>2018-04-18 09:48:00 +0200
commite3e5c69efa03a69e8cb08e6e21375695b7494631 (patch)
tree08211330781cb124fb56be63716337382ea5ed3f
parenta7ce83547c3fedb378990287b414df45dc18ddd2 (diff)
downloadgitlab-ce-fj-5274-web-ide-runners-ce.tar.gz
Small rename to api params namefj-5274-web-ide-runners-ce
-rw-r--r--lib/api/runner.rb8
1 files 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 =