Sha256: 16228b644a23f869cb1a9d04d74b27109da4cca389c376e15dd6500e8d2d915b

Contents?: true

Size: 850 Bytes

Versions: 19

Compression:

Stored size: 850 Bytes

Contents

module Actions
  module Pulp
    module Consumer
      class ContentUpdate < AbstractContentAction
        include Helpers::Presenter
        include Actions::Pulp::ExpectOneTask

        input_format do
          param :consumer_uuid, String
          param :type, %w(rpm)
          param :args, array_of(String)
        end

        def invoke_external_task
          options = { "importkeys" => true }
          options[:all] = true if input[:args].blank?

          pulp_extensions.consumer.update_content(input[:consumer_uuid],
                                                  input[:type],
                                                  parse_units_for_type,
                                                  options)
        end

        def presenter
          Consumer::ContentPresenter.new(self)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.11.2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.10.2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.10.1.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.10.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.11.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.11.0 app/lib/actions/pulp/consumer/content_update.rb
katello-3.11.0.rc2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.11.0.rc1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.10.0 app/lib/actions/pulp/consumer/content_update.rb
katello-3.10.0.rc1.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.9.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.10.0.rc1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.9.0 app/lib/actions/pulp/consumer/content_update.rb
katello-3.8.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.9.0.rc2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.9.0.rc1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.7.1.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.7.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.8.0 app/lib/actions/pulp/consumer/content_update.rb