Sha256: 4c9343b0e72bad7dee0990ff81bc708dbc36fdb7c4af575a41907a0aa9ed52ce

Contents?: true

Size: 698 Bytes

Versions: 9

Compression:

Stored size: 698 Bytes

Contents

module Actions
  module Candlepin
    module Product
      class ContentCreate < Candlepin::Abstract
        input_format do
          param :name
          param :type
          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],
                     label: input[:label],
                     metadataExpire: 1,
                     vendor: ::Katello::Provider::CUSTOM)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.4.5 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.4 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.2 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.1 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.0.2 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.0.1 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.0 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.0.rc2 app/lib/actions/candlepin/product/content_create.rb
katello-3.4.0.rc1 app/lib/actions/candlepin/product/content_create.rb