Method: Content::Repository#full_path
- Defined in:
- app/models/content/repository.rb
#full_path ⇒ Object
58 59 60 61 62 63 |
# File 'app/models/content/repository.rb', line 58 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 |