Sha256: 186954d42bd9a6f2bde1aaa1c41078ea098e342535b3b5f6ca2b5a392906165d

Contents?: true

Size: 962 Bytes

Versions: 66

Compression:

Stored size: 962 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?

          task = pulp_extensions.consumer.update_content(input[:consumer_uuid],
                                                         input[:type],
                                                         parse_units_for_type,
                                                         options)
          schedule_timeout(Setting['content_action_accept_timeout'])
          task
        end

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

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
katello-3.18.5 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.4 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.3.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.3 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.2.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.17.3 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.1.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.17.2 app/lib/actions/pulp/consumer/content_update.rb
katello-4.0.0.rc1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.0 app/lib/actions/pulp/consumer/content_update.rb
katello-3.17.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.16.2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.0.rc2.1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.0.rc2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.17.0 app/lib/actions/pulp/consumer/content_update.rb
katello-3.18.0.rc1 app/lib/actions/pulp/consumer/content_update.rb
katello-3.17.0.rc2.2 app/lib/actions/pulp/consumer/content_update.rb
katello-3.17.0.rc2.1 app/lib/actions/pulp/consumer/content_update.rb