Sha256: 228aa62fe9da4ad88866625cfb183b4dc8f1165fb41943f96747f0715f4d6ca8
Contents?: true
Size: 766 Bytes
Versions: 30
Compression:
Stored size: 766 Bytes
Contents
module Actions module Candlepin module Product class ContentAdd < Candlepin::Abstract DEFAULT_ENABLEMENT = false input_format do param :product_id param :content_id param :owner end def run output[:response] = ::Katello::Resources::Candlepin::Product. add_content(input[:owner], input[:product_id], input[:content_id], DEFAULT_ENABLEMENT) end def humanized_name _("Add content") end # results in correct grammar on Tasks page, # e.g. "Import manifest for organization Default Organization" def humanized_input "for Candlepin product #{input[:product_id]}" end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems