Sha256: f1d951ca1d325c1467f2f4d50911987960c03daf17380cdecb8dc66201629554

Contents?: true

Size: 767 Bytes

Versions: 89

Compression:

Stored size: 767 Bytes

Contents

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

        def run
          output[:response] = ::Katello::Resources::Candlepin::Content.
              create(input[:owner],
                     name: input[:name],
                     contentUrl: input[:content_url],
                     type: input[:type],
                     arches: input[:arches],
                     label: input[:label],
                     metadataExpire: 1,
                     vendor: ::Katello::Provider::CUSTOM)
        end
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
katello-3.11.0.rc1 app/lib/actions/candlepin/product/content_create.rb
katello-3.10.0 app/lib/actions/candlepin/product/content_create.rb
katello-3.10.0.rc1.1 app/lib/actions/candlepin/product/content_create.rb
katello-3.9.1 app/lib/actions/candlepin/product/content_create.rb
katello-3.10.0.rc1 app/lib/actions/candlepin/product/content_create.rb
katello-3.9.0 app/lib/actions/candlepin/product/content_create.rb
katello-3.8.1 app/lib/actions/candlepin/product/content_create.rb
katello-3.9.0.rc2 app/lib/actions/candlepin/product/content_create.rb
katello-3.9.0.rc1 app/lib/actions/candlepin/product/content_create.rb
katello-3.7.1.1 app/lib/actions/candlepin/product/content_create.rb
katello-3.7.1 app/lib/actions/candlepin/product/content_create.rb
katello-3.8.0 app/lib/actions/candlepin/product/content_create.rb
katello-3.8.0.rc3 app/lib/actions/candlepin/product/content_create.rb
katello-3.8.0.rc2 app/lib/actions/candlepin/product/content_create.rb
katello-3.7.0 app/lib/actions/candlepin/product/content_create.rb
katello-3.8.0.rc1 app/lib/actions/candlepin/product/content_create.rb
katello-3.7.0.rc2 app/lib/actions/candlepin/product/content_create.rb
katello-3.7.0.rc1 app/lib/actions/candlepin/product/content_create.rb
katello-3.5.2 app/lib/actions/candlepin/product/content_create.rb
katello-3.6.0 app/lib/actions/candlepin/product/content_create.rb