summaryrefslogtreecommitdiff
path: root/app/graphql/types/package_type_enum.rb
blob: fe6e4d80a1a6cbf79de06c9c5c3cd7095c2b15d4 (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.capitalize} package manager", value: package_type.to_s
    end
  end
end