Sha256: f446a9a09360c328d580acaad11583e80ecda4797df19759134a1a778319631f
Contents?: true
Size: 730 Bytes
Versions: 29
Compression:
Stored size: 730 Bytes
Contents
module Katello module Concerns module ContainerExtensions extend ActiveSupport::Concern module Overrides def repository_pull_url repo_url = super if Repository.where(:container_repository_name => repository_name).count > 0 manifest_capsule = self.capsule || CapsuleContent.default_capsule.capsule "#{URI(manifest_capsule.url).hostname}:#{Setting['pulp_docker_registry_port']}/#{repo_url}" else repo_url end end end included do prepend Overrides belongs_to :capsule, :inverse_of => :containers, :foreign_key => :capsule_id, :class_name => "SmartProxy" end end end end
Version data entries
29 entries across 29 versions & 1 rubygems