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

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

module Types
  module Projects
    class ServiceTypeEnum < BaseEnum
      graphql_name 'ServiceType'

      ::Service.available_services_types(include_dev: false).each do |service_type|
        value service_type.underscore.upcase, value: service_type, description: "#{service_type} type"
      end
    end
  end
end