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

Version Path
katello-4.11.0.rc2 app/services/katello/content_view_manager.rb
katello-4.11.0.rc1 app/services/katello/content_view_manager.rb
katello-4.10.0 app/services/katello/content_view_manager.rb
katello-4.9.2 app/services/katello/content_view_manager.rb
katello-4.10.0.rc2 app/services/katello/content_view_manager.rb
katello-4.10.0.rc1 app/services/katello/content_view_manager.rb
katello-4.8.4 app/services/katello/content_view_manager.rb
katello-4.9.1 app/services/katello/content_view_manager.rb
katello-4.8.3 app/services/katello/content_view_manager.rb
katello-4.9.0 app/services/katello/content_view_manager.rb
katello-4.7.6 app/services/katello/content_view_manager.rb
katello-4.8.2 app/services/katello/content_view_manager.rb
katello-4.9.0.rc2 app/services/katello/content_view_manager.rb
katello-4.9.0.rc1 app/services/katello/content_view_manager.rb
katello-4.8.1 app/services/katello/content_view_manager.rb
katello-4.7.5 app/services/katello/content_view_manager.rb
katello-4.8.0 app/services/katello/content_view_manager.rb
katello-4.8.0.rc2 app/services/katello/content_view_manager.rb
katello-4.7.4 app/services/katello/content_view_manager.rb
katello-4.8.0.rc1 app/services/katello/content_view_manager.rb