Sha256: fafce6c57e0e32d01da82af27227344f7e4c717d3bdf864b2ff03a3351f1e0cb
Contents?: true
Size: 535 Bytes
Versions: 10
Compression:
Stored size: 535 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 return 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
10 entries across 10 versions & 1 rubygems