Revision 91ec985e
Added by Brad Buckingham about 10 years ago
app/models/katello/concerns/environment_extensions.rb | ||
---|---|---|
|
||
# content_view_id provides the uniqueness of the name
|
||
def construct_name(org, env, content_view)
|
||
name = ["KT", org.label, env.label, content_view.label, content_view.id].reject(&:blank?).join('_')
|
||
name = ["KT",
|
||
org.try(:label),
|
||
env.try(:label),
|
||
content_view.try(:label),
|
||
content_view.try(:id)
|
||
].reject(&:blank?).join('_')
|
||
|
||
return name.gsub('-', '_')
|
||
end
|
||
end
|
Also available in: Unified diff
Content View Rework: updates to support publish and promote for puppet content
This commit contains the changes to support publishing
and promoting content views that contain puppet content.
One key change being introduced is the 'ContentViewPuppetEnvironment',
which represents the published content. When one is created,
a pulp puppet repository is created. It was split out to be
a separate model as it cannot be associated with a product
(since the source of the content could be multiple repositories);
however, it does share the glue/pulp/repo.rb that is used by the
Repository model.