Sha256: a771d27e551b15d323914218360b64f5a53fc681b12ddda5306d2f32d33a619c
Contents?: true
Size: 554 Bytes
Versions: 37
Compression:
Stored size: 554 Bytes
Contents
module Actions module Pulp3 module CapsuleContent class RefreshContentGuard < Pulp3::AbstractAsyncTask def plan(smart_proxy, options = {}) content_guard_api = ::Katello::Pulp3::Api::ContentGuard.new(smart_proxy) content_guard_href = content_guard_api.list&.results&.first&.pulp_href if content_guard_href && options.try(:[], :update) content_guard_api.partial_update content_guard_href else content_guard_api.create end end end end end end
Version data entries
37 entries across 37 versions & 1 rubygems