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

variable_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: 44430754a2efd02fc7872265f198663a584ea3fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Types
  module Ci
    class VariableTypeEnum < BaseEnum
      graphql_name 'CiVariableType'

      ::Ci::Variable.variable_types.keys.each do |variable_type|
        value variable_type.upcase, value: variable_type, description: "#{variable_type.humanize} type."
      end
    end
  end
end