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

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

module Types
  module Packages
    class PackageStatusEnum < BaseEnum
      graphql_name 'PackageStatus'

      ::Packages::Package.statuses.keys.each do |status|
        value status.to_s.upcase, description: "Packages with a #{status} status", value: status.to_s
      end
    end
  end
end