debian-mirror-gitlab/app/helpers/container_registry_helper.rb
2022-05-07 20:08:51 +05:30

11 lines
328 B
Ruby

# frozen_string_literal: true
module ContainerRegistryHelper
def container_registry_expiration_policies_throttling?
Feature.enabled?(:container_registry_expiration_policies_throttling, default_enabled: :yaml)
end
def container_repository_gid_prefix
"gid://#{GlobalID.app}/#{ContainerRepository.name}/"
end
end