Sha256: 9a99b46ccdf8793a952a0ccf8f067fd68545c852042c803828633c2f32885ff3

Contents?: true

Size: 842 Bytes

Versions: 63

Compression:

Stored size: 842 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],
                                                  input[:args],
                                                  options)
        end

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
katello-2.4.0.rc3 app/lib/actions/pulp/consumer/content_update.rb
katello-2.4.0.rc2 app/lib/actions/pulp/consumer/content_update.rb
katello-2.4.0.rc1 app/lib/actions/pulp/consumer/content_update.rb