Sha256: 6ac621acf8e5535774e6c1a5e629bdeeb5853209e9cbd86ee4fac697b54a849e

Contents?: true

Size: 658 Bytes

Versions: 45

Compression:

Stored size: 658 Bytes

Contents

module Actions
  module Pulp3
    module ContentGuard
      class Refresh < Pulp3::Abstract
        def plan(smart_proxy, options = {})
          return if (::Katello::Pulp3::ContentGuard.count > 0 || options.try(:[], :update))
          content_guard_api = ::Katello::Pulp3::Api::ContentGuard.new(smart_proxy)
          if options.try(:[], :update)
            content_guard_href = ::Katello::Pulp3::ContentGuard.first.href
            content_guard_api.partial_update content_guard_href
          else
            content_guard_api.create
            ::Katello::Pulp3::ContentGuard.import(smart_proxy)
          end
        end
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

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