Sha256: 228aa62fe9da4ad88866625cfb183b4dc8f1165fb41943f96747f0715f4d6ca8

Contents?: true

Size: 766 Bytes

Versions: 30

Compression:

Stored size: 766 Bytes

Contents

module Actions
  module Candlepin
    module Product
      class ContentAdd < Candlepin::Abstract
        DEFAULT_ENABLEMENT = false

        input_format do
          param :product_id
          param :content_id
          param :owner
        end

        def run
          output[:response] = ::Katello::Resources::Candlepin::Product.
              add_content(input[:owner], input[:product_id], input[:content_id], DEFAULT_ENABLEMENT)
        end

        def humanized_name
          _("Add content")
        end

        # results in correct grammar on Tasks page,
        # e.g. "Import manifest for organization Default Organization"
        def humanized_input
          "for Candlepin product #{input[:product_id]}"
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

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