Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/ci/runner_type_enum.rb')
-rw-r--r--app/graphql/types/ci/runner_type_enum.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/graphql/types/ci/runner_type_enum.rb b/app/graphql/types/ci/runner_type_enum.rb
index f771635f4ed..12e87906179 100644
--- a/app/graphql/types/ci/runner_type_enum.rb
+++ b/app/graphql/types/ci/runner_type_enum.rb
@@ -5,10 +5,10 @@ module Types
class RunnerTypeEnum < BaseEnum
graphql_name 'CiRunnerType'
- ::Ci::Runner.runner_types.keys.each do |type|
- value type.upcase,
- description: "A runner that is #{type.tr('_', ' ')}.",
- value: type
+ ::Ci::Runner::AVAILABLE_TYPES.each do |runner_type|
+ value runner_type.upcase,
+ description: "A runner that is #{runner_type.tr('_', ' ')}.",
+ value: runner_type
end
end
end