Sha256: 54f3440d6c2694cae89251b2bb076d22d24bdc526a0425d5aa3636fa1da4d640

Contents?: true

Size: 852 Bytes

Versions: 111

Compression:

Stored size: 852 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
          param :os_versions
        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],
                     requiredTags: input[:os_versions],
                     metadataExpire: 1,
                     vendor: ::Katello::Provider::CUSTOM)
        end
      end
    end
  end
end

Version data entries

111 entries across 111 versions & 1 rubygems

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