Sha256: 11570b3c210d74f9aea515fc6544a47744ebc74d471e89307e5820bd4864299f
Contents?: true
Size: 881 Bytes
Versions: 90
Compression:
Stored size: 881 Bytes
Contents
module Katello class ContentViewManager def self.add_version_to_environment(content_view_version:, environment:) content_view = content_view_version.content_view if (cve = content_view.content_view_environment(environment)) content_view_version.content_view_environments << cve else cve = content_view.add_environment(environment, content_view_version) end cve end def self.create_candlepin_environment(content_view_environment:) unless content_view_environment.exists_in_candlepin? ::Katello::Resources::Candlepin::Environment.create( content_view_environment.content_view.organization.label, content_view_environment.cp_id, content_view_environment.label, content_view_environment.content_view.description.try(:truncate, 255) ) end end end end
Version data entries
90 entries across 90 versions & 1 rubygems