Module: Content::RepositoryCommon
- Extended by:
- ActiveSupport::Concern
- Included in:
- Repository, RepositoryClone
- Defined in:
- app/models/concerns/content/repository_common.rb
Constant Summary collapse
- REPO_PREFIX =
'/pulp/repos/'
Instance Method Summary collapse
Instance Method Details
#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 |