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