Method: Content::RepositoryCommon#full_path
- Defined in:
- app/models/concerns/content/repository_common.rb
#full_path ⇒ Object
7 8 9 10 11 12 |
# File 'app/models/concerns/content/repository_common.rb', line 7 def full_path pulp_url = URI.parse(Setting.pulp_url) scheme = (unprotected ? 'http' : 'https') port = (pulp_url.port == 443 || pulp_url.port == 80 ? "" : ":#{pulp_url.port}") "#{scheme}://#{pulp_url.host}#{port}#{REPO_PREFIX}#{relative_path}" end |