Module: Katello::Concerns::ContainerExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/models/katello/concerns/container_extensions.rb

Instance Method Summary collapse

Instance Method Details

#repository_pull_url_with_katelloObject



14
15
16
17
18
19
20
21
22
# File 'app/models/katello/concerns/container_extensions.rb', line 14

def repository_pull_url_with_katello
  repo_url = repository_pull_url_without_katello
  if Repository.where(:pulp_id => repository_name).count > 0
    manifest_capsule = self.capsule || CapsuleContent.default_capsule.capsule
    "#{URI(manifest_capsule.url).hostname}:5000/#{repo_url}"
  else
    repo_url
  end
end