Sha256: d9bed10c7e5df2aff1563a5c0bafa5b0c129523f0bbce4d7fc8492264ad33981

Contents?: true

Size: 393 Bytes

Versions: 158

Compression:

Stored size: 393 Bytes

Contents

require 'set'

module Katello
  module Glue::Candlepin::Environment
    def self.included(base)
      base.send :include, InstanceMethods
    end

    module InstanceMethods
      def candlepin_info
        Resources::Candlepin::Environment.find(self.cp_id)
      end

      def content_ids
        self.candlepin_info['environmentContent'].collect { |c| c['id'] }
      end
    end
  end
end

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
katello-4.0.3 app/models/katello/glue/candlepin/environment.rb
katello-3.18.5 app/models/katello/glue/candlepin/environment.rb
katello-4.0.2.1 app/models/katello/glue/candlepin/environment.rb
katello-4.0.2 app/models/katello/glue/candlepin/environment.rb
katello-3.18.4 app/models/katello/glue/candlepin/environment.rb
katello-4.0.1.2 app/models/katello/glue/candlepin/environment.rb
katello-3.18.3.1 app/models/katello/glue/candlepin/environment.rb
katello-4.0.1.1 app/models/katello/glue/candlepin/environment.rb
katello-3.18.3 app/models/katello/glue/candlepin/environment.rb
katello-4.0.1 app/models/katello/glue/candlepin/environment.rb
katello-4.0.0 app/models/katello/glue/candlepin/environment.rb
katello-4.0.0.rc3.1 app/models/katello/glue/candlepin/environment.rb
katello-4.0.0.rc3 app/models/katello/glue/candlepin/environment.rb
katello-3.18.2.1 app/models/katello/glue/candlepin/environment.rb
katello-3.18.2 app/models/katello/glue/candlepin/environment.rb
katello-3.17.3 app/models/katello/glue/candlepin/environment.rb
katello-4.0.0.rc2 app/models/katello/glue/candlepin/environment.rb
katello-3.18.1.1 app/models/katello/glue/candlepin/environment.rb
katello-3.17.2 app/models/katello/glue/candlepin/environment.rb
katello-4.0.0.rc1 app/models/katello/glue/candlepin/environment.rb