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