diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-10 00:09:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-10 00:09:22 +0300 |
commit | 017841e3c03105efd0b94e730652c5774f2c136f (patch) | |
tree | b2931e81db33138d3c32e058879a78635c0e2614 /app/graphql/types/packages/conan/metadatum_file_type_enum.rb | |
parent | b19efd72743e22fd3b340b3c2906ba113e1390de (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types/packages/conan/metadatum_file_type_enum.rb')
-rw-r--r-- | app/graphql/types/packages/conan/metadatum_file_type_enum.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/graphql/types/packages/conan/metadatum_file_type_enum.rb b/app/graphql/types/packages/conan/metadatum_file_type_enum.rb new file mode 100644 index 00000000000..d8ec3a44d4d --- /dev/null +++ b/app/graphql/types/packages/conan/metadatum_file_type_enum.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Types + module Packages + module Conan + class MetadatumFileTypeEnum < BaseEnum + graphql_name 'ConanMetadatumFileTypeEnum' + description 'Conan file types' + + ::Packages::Conan::FileMetadatum.conan_file_types.keys.each do |file| + value file.upcase, value: file, description: "A #{file.humanize(capitalize: false)} type." + end + end + end + end +end |