summaryrefslogtreecommitdiff
path: root/app/graphql/types/package_type_enum.rb
blob: bc03b8f5f8b04412cb2e5a75e76de58d39c1e548 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module Types
  class PackageTypeEnum < BaseEnum
    ::Packages::Package.package_types.keys.each do |package_type|
      value package_type.to_s.upcase, "Packages from the #{package_type} package manager", value: package_type.to_s
    end
  end
end