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