Sha256: 86da451ec3bb7e3b4ac8f86f70bc19ab62d34b77e5bdae8c6fdf71d24758385e

Contents?: true

Size: 627 Bytes

Versions: 191

Compression:

Stored size: 627 Bytes

Contents

module Katello
  module Resources
    module Candlepin
      class Entitlement < CandlepinResource
        class << self
          def regenerate_entitlement_certificates_for_product(product_id)
            self.put("/candlepin/entitlements/product/#{product_id}", nil, self.default_headers).code.to_i
          end

          def get(id = nil, params = '')
            json = Candlepin::CandlepinResource.get(path(id) + params, self.default_headers).body
            JSON.parse(json)
          end

          def path(id = nil)
            "/candlepin/entitlements/#{id}"
          end
        end
      end
    end
  end
end

Version data entries

191 entries across 191 versions & 1 rubygems

Version Path
katello-4.14.2 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.15.0 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.15.0.rc2 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.15.0.rc1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.14.1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.14.0 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.14.0.rc3 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.14.0.rc2 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.14.0.rc1.1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.14.0.rc1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.13.1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.13.0 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.12.1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.13.0.rc1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.12.0 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.12.0.rc3 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.12.0.rc2 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.12.0.rc1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.11.1 app/lib/katello/resources/candlepin/entitlement.rb
katello-4.11.0 app/lib/katello/resources/candlepin/entitlement.rb