Sha256: f75142197271d6d9e7b15e552d826e8d5fb3df32da00ebaea34ea3558bd24f1e

Contents?: true

Size: 948 Bytes

Versions: 50

Compression:

Stored size: 948 Bytes

Contents

module Actions
  module Candlepin
    module Product
      class ContentUpdate < Candlepin::Abstract
        input_format do
          param :content_id
          param :name
          param :type
          param :arches
          param :label
          param :content_url
          param :gpg_key_url
          param :owner
        end

        def run
          output[:response] = ::Katello::Resources::Candlepin::Content.
              update(input[:owner],
                     id: input[:content_id],
                     name: input[:name],
                     contentUrl: input[:content_url],
                     gpgUrl: input[:gpg_key_url] || '', #candlepin ignores nil
                     type: input[:type],
                     arches: input[:arches],
                     label: input[:label],
                     metadataExpire: 1,
                     vendor: ::Katello::Provider::CUSTOM)
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
katello-3.17.3 app/lib/actions/candlepin/product/content_update.rb
katello-3.17.2 app/lib/actions/candlepin/product/content_update.rb
katello-3.17.1 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.2 app/lib/actions/candlepin/product/content_update.rb
katello-3.17.0 app/lib/actions/candlepin/product/content_update.rb
katello-3.17.0.rc2.2 app/lib/actions/candlepin/product/content_update.rb
katello-3.17.0.rc2.1 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.1.2 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.1.1 app/lib/actions/candlepin/product/content_update.rb
katello-3.17.0.rc2 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.1 app/lib/actions/candlepin/product/content_update.rb
katello-3.17.0.rc1 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.0 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.0.rc5.1 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.0.rc5 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.0.rc4.1 app/lib/actions/candlepin/product/content_update.rb
katello-3.15.3.1 app/lib/actions/candlepin/product/content_update.rb
katello-3.15.3 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.0.rc4 app/lib/actions/candlepin/product/content_update.rb
katello-3.16.0.rc3.1 app/lib/actions/candlepin/product/content_update.rb