Sha256: ba772e920f3c6d1b571b9e92482f0123dd0568b1fd170ad87bec36a023ace30b
Contents?: true
Size: 716 Bytes
Versions: 90
Compression:
Stored size: 716 Bytes
Contents
module Actions module Candlepin module Owner class Import < Candlepin::AbstractAsyncTask input_format do param :label param :path param :force param :upstream end def invoke_external_task options = input.slice(:force, :upstream) ::Katello::Resources::Candlepin::Owner.import(input[:label], input[:path], options) end def humanized_output result_data = output[:task]&.[]('resultData') return '' if result_data&.[]('status').blank? "Candlepin job status: #{result_data['status']}\n Message: #{result_data['statusMessage']}" end end end end end
Version data entries
90 entries across 90 versions & 1 rubygems