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

runner_type_enum.rb « ci « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f771635f4ed56d22b08154a00a0ba67af06c9334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Types
  module Ci
    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
      end
    end
  end
end