Sha256: 9de68a18db26ae2012471186a641e6f0b07ba7ec948f4743e7313ba53ede2550

Contents?: true

Size: 1.07 KB

Versions: 27

Compression:

Stored size: 1.07 KB

Contents

module Actions
  module Candlepin
    module Product
      class ContentUpdate < Candlepin::Abstract
        input_format do
          param :content_id
          param :name
          param :type
          param :arches
          param :os_versions
          param :label
          param :content_url
          param :gpg_key_url
          param :owner
          param :metadata_expire
        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] || '',
                     requiredTags: input[:os_versions],
                     label: input[:label],
                     metadataExpire: input[:metadata_expire] || 1,
                     vendor: ::Katello::Provider::CUSTOM)
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
katello-4.14.2 app/lib/actions/candlepin/product/content_update.rb
katello-4.14.1 app/lib/actions/candlepin/product/content_update.rb
katello-4.14.0 app/lib/actions/candlepin/product/content_update.rb
katello-4.14.0.rc3 app/lib/actions/candlepin/product/content_update.rb
katello-4.14.0.rc2 app/lib/actions/candlepin/product/content_update.rb
katello-4.14.0.rc1.1 app/lib/actions/candlepin/product/content_update.rb
katello-4.14.0.rc1 app/lib/actions/candlepin/product/content_update.rb
katello-4.13.1 app/lib/actions/candlepin/product/content_update.rb
katello-4.13.0 app/lib/actions/candlepin/product/content_update.rb
katello-4.12.1 app/lib/actions/candlepin/product/content_update.rb
katello-4.13.0.rc1 app/lib/actions/candlepin/product/content_update.rb
katello-4.12.0 app/lib/actions/candlepin/product/content_update.rb
katello-4.12.0.rc3 app/lib/actions/candlepin/product/content_update.rb
katello-4.12.0.rc2 app/lib/actions/candlepin/product/content_update.rb
katello-4.12.0.rc1 app/lib/actions/candlepin/product/content_update.rb
katello-4.11.1 app/lib/actions/candlepin/product/content_update.rb
katello-4.11.0 app/lib/actions/candlepin/product/content_update.rb
katello-4.11.0.rc2 app/lib/actions/candlepin/product/content_update.rb
katello-4.11.0.rc1 app/lib/actions/candlepin/product/content_update.rb
katello-4.10.0 app/lib/actions/candlepin/product/content_update.rb