summaryrefslogtreecommitdiff
path: root/app/graphql/types/dependency_proxy/manifest_type_enum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/dependency_proxy/manifest_type_enum.rb')
-rw-r--r--app/graphql/types/dependency_proxy/manifest_type_enum.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/graphql/types/dependency_proxy/manifest_type_enum.rb b/app/graphql/types/dependency_proxy/manifest_type_enum.rb
new file mode 100644
index 00000000000..ddd1652eeea
--- /dev/null
+++ b/app/graphql/types/dependency_proxy/manifest_type_enum.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+module Types
+ class DependencyProxy::ManifestTypeEnum < BaseEnum
+ graphql_name 'DependencyProxyManifestStatus'
+
+ ::DependencyProxy::Manifest.statuses.keys.each do |status|
+ value status.upcase, description: "Dependency proxy manifest has a status of #{status}.", value: status
+ end
+ end
+end