Sha256: 589680bbbb16a2e9f83b4a0c469f1fc07b68a6fad60e4e7a1634cf74cd978ae9

Contents?: true

Size: 536 Bytes

Versions: 125

Compression:

Stored size: 536 Bytes

Contents

module Katello
  module Pulp3
    class ContentGuard < Katello::Model
      def self.import(smart_proxy = SmartProxy.pulp_primary!, 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

125 entries across 125 versions & 1 rubygems

Version Path
katello-4.16.0 app/models/katello/pulp3/content_guard.rb
katello-4.15.1 app/models/katello/pulp3/content_guard.rb
katello-4.16.0.rc2 app/models/katello/pulp3/content_guard.rb
katello-4.16.0.rc1 app/models/katello/pulp3/content_guard.rb
katello-4.14.3 app/models/katello/pulp3/content_guard.rb
katello-4.14.2 app/models/katello/pulp3/content_guard.rb
katello-4.15.0 app/models/katello/pulp3/content_guard.rb
katello-4.15.0.rc2 app/models/katello/pulp3/content_guard.rb
katello-4.15.0.rc1 app/models/katello/pulp3/content_guard.rb
katello-4.14.1 app/models/katello/pulp3/content_guard.rb
katello-4.14.0 app/models/katello/pulp3/content_guard.rb
katello-4.14.0.rc3 app/models/katello/pulp3/content_guard.rb
katello-4.14.0.rc2 app/models/katello/pulp3/content_guard.rb
katello-4.14.0.rc1.1 app/models/katello/pulp3/content_guard.rb
katello-4.14.0.rc1 app/models/katello/pulp3/content_guard.rb
katello-4.13.1 app/models/katello/pulp3/content_guard.rb
katello-4.13.0 app/models/katello/pulp3/content_guard.rb
katello-4.12.1 app/models/katello/pulp3/content_guard.rb
katello-4.13.0.rc1 app/models/katello/pulp3/content_guard.rb
katello-4.12.0 app/models/katello/pulp3/content_guard.rb