Sha256: 825aa91110712d0be6ae2747e04fa0062427d9a69eef22e184a02410179aa9b3

Contents?: true

Size: 820 Bytes

Versions: 35

Compression:

Stored size: 820 Bytes

Contents

module Katello
  module Glue::Candlepin::Repository
    CANDLEPIN_DOCKER_TYPE = "containerimage".freeze
    CANDLEPIN_OSTREE_TYPE = "ostree".freeze

    def self.included(base)
      base.send :include, InstanceMethods
      # required for GPG key url generation
      base.send :include, Rails.application.routes.url_helpers
    end

    module InstanceMethods
      def content
        Katello::Content.find_by(:cp_content_id => self.content_id, :organization_id => self.product.organization_id)
      end

      def yum_gpg_key_url
        # if the repo has a gpg key return a url to access it
        if (gpg_key && gpg_key.content.present?)
          host = SETTINGS[:fqdn]
          gpg_key_content_api_repository_url(self, :host => host + "/katello", :protocol => 'https')
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
katello-3.15.0.rc1.1 app/models/katello/glue/candlepin/repository.rb
katello-3.15.0.rc1 app/models/katello/glue/candlepin/repository.rb
katello-3.14.1 app/models/katello/glue/candlepin/repository.rb
katello-3.13.4 app/models/katello/glue/candlepin/repository.rb
katello-3.14.0 app/models/katello/glue/candlepin/repository.rb
katello-3.13.3 app/models/katello/glue/candlepin/repository.rb
katello-3.14.0.rc2 app/models/katello/glue/candlepin/repository.rb
katello-3.13.2 app/models/katello/glue/candlepin/repository.rb
katello-3.14.0.rc1 app/models/katello/glue/candlepin/repository.rb
katello-3.13.1 app/models/katello/glue/candlepin/repository.rb
katello-3.13.0 app/models/katello/glue/candlepin/repository.rb
katello-3.13.0.rc2.1 app/models/katello/glue/candlepin/repository.rb
katello-3.13.0.rc2 app/models/katello/glue/candlepin/repository.rb
katello-3.12.3 app/models/katello/glue/candlepin/repository.rb
katello-3.12.2 app/models/katello/glue/candlepin/repository.rb
katello-3.13.0.rc1 app/models/katello/glue/candlepin/repository.rb
katello-3.12.1 app/models/katello/glue/candlepin/repository.rb
katello-3.11.2 app/models/katello/glue/candlepin/repository.rb
katello-3.10.2 app/models/katello/glue/candlepin/repository.rb
katello-3.12.0 app/models/katello/glue/candlepin/repository.rb