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

Version Path
katello-3.18.5 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-3.18.4 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.0.1.2 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-3.18.3.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.1.0.rc2.2 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.1.0.rc2.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.0.1.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-3.18.3 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.1.0.rc2 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.0.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.1.0.rc1.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.1.0.rc1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.0.0 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.0.0.rc3.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.0.0.rc3 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-3.18.2.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-3.18.2 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-3.17.3 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-4.0.0.rc2 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb
katello-3.18.1.1 app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb