Module: Glue::Pulp::Repos

Included in:
Katello::Product
Defined in:
app/models/katello/glue/pulp/repos.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'app/models/katello/glue/pulp/repos.rb', line 5

def self.included(base)
  base.send :include, InstanceMethods
end

.repo_path_from_content_path(environment, content_path) ⇒ Object



9
10
11
12
13
# File 'app/models/katello/glue/pulp/repos.rb', line 9

def self.repo_path_from_content_path(environment, content_path)
  path = content_path.sub(%r|^/|, '')
  path_prefix = [environment.organization.label, environment.label].join('/')
  "#{path_prefix}/#{path}"
end