Sha256: ee4d42b3846fe1a617287bbebec7c848308628417de6c04f7c9d873069d18170
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
module Katello module Pulp3 class ContentGuard < Katello::Model def self.import(smart_proxy = SmartProxy.pulp_master!, force = false) return unless (count == 0 || force) content_guard_api = Katello::Pulp3::Api::ContentGuard.new(smart_proxy) content_guard = content_guard_api.list&.results&.first fail _("No Content Guard configured!") unless content_guard katello_content_guard = self.new(name: content_guard.name, pulp_href: content_guard.pulp_href) katello_content_guard.save! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
katello-3.16.0.rc3.1 | app/models/katello/pulp3/content_guard.rb |
katello-3.16.0.rc3 | app/models/katello/pulp3/content_guard.rb |
katello-3.16.0.rc2.1 | app/models/katello/pulp3/content_guard.rb |