Sha256: e3ebb68225afa6ea74cd25ab3b4512110c296d78a7253b287a3c225219012b72

Contents?: true

Size: 639 Bytes

Versions: 71

Compression:

Stored size: 639 Bytes

Contents

module Katello
  module Candlepin
    class UpstreamConsumer
      def initialize(organization)
        @organization = organization
      end

      def simple_content_access_eligible?
        eligible = true
        ::Organization.as_org(@organization) do
          content_modes = resource_class.content_access

          if content_modes.key?(:contentAccessModeList)
            eligible = content_modes[:contentAccessModeList].include?('org_environment')
          end
        end

        eligible
      end

      private

      def resource_class
        Katello::Resources::Candlepin::UpstreamConsumer
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
katello-4.7.1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.6.2.1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.6.2 app/services/katello/candlepin/upstream_consumer.rb
katello-4.7.0 app/services/katello/candlepin/upstream_consumer.rb
katello-4.6.1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.7.0.rc2 app/services/katello/candlepin/upstream_consumer.rb
katello-4.7.0.rc1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.4.2.2 app/services/katello/candlepin/upstream_consumer.rb
katello-4.4.2.1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.4.2 app/services/katello/candlepin/upstream_consumer.rb
katello-4.5.1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.6.0 app/services/katello/candlepin/upstream_consumer.rb
katello-4.6.0.rc2 app/services/katello/candlepin/upstream_consumer.rb
katello-4.6.0.rc1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.5.0 app/services/katello/candlepin/upstream_consumer.rb
katello-4.5.0.rc2 app/services/katello/candlepin/upstream_consumer.rb
katello-4.4.1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.5.0.rc1 app/services/katello/candlepin/upstream_consumer.rb
katello-4.4.0.2 app/services/katello/candlepin/upstream_consumer.rb
katello-4.4.0.1 app/services/katello/candlepin/upstream_consumer.rb