summaryrefslogtreecommitdiff
path: root/lib/api/runners.rb
diff options
context:
space:
mode:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2018-06-07 17:43:23 +0200
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-08-20 17:12:18 +0200
commitbbc305b1a24785d780fe0672d9e49f2c53af463b (patch)
tree831aa700c239fc05f7b3f9b9f135d05922ab51af /lib/api/runners.rb
parentf0d0400d0be6948f769c8733386ed765a04d23b2 (diff)
downloadgitlab-ce-bbc305b1a24785d780fe0672d9e49f2c53af463b.tar.gz
dry up available scopes to constants
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index bf9cd6234a3..3ddf6694e57 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -9,7 +9,7 @@ module API
success Entities::Runner
end
params do
- optional :scope, type: String, values: %w[active paused online offline],
+ optional :scope, type: String, values: Ci::Runner::AVAILABLE_STATUSES,
desc: 'The scope of specific runners to show'
use :pagination
end
@@ -22,7 +22,7 @@ module API
success Entities::Runner
end
params do
- optional :scope, type: String, values: %w[active paused online offline specific shared],
+ optional :scope, type: String, values: Ci::Runner::AVAILABLE_SCOPES,
desc: 'The scope of specific runners to show'
use :pagination
end
@@ -114,7 +114,7 @@ module API
success Entities::Runner
end
params do
- optional :scope, type: String, values: %w[active paused online offline specific shared],
+ optional :scope, type: String, values: Ci::Runner::AVAILABLE_SCOPES,
desc: 'The scope of specific runners to show'
use :pagination
end