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

Version Path
katello-4.14.2 app/lib/actions/candlepin/owner/import.rb
katello-4.15.0 app/lib/actions/candlepin/owner/import.rb
katello-4.15.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.15.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.14.1 app/lib/actions/candlepin/owner/import.rb
katello-4.14.0 app/lib/actions/candlepin/owner/import.rb
katello-4.14.0.rc3 app/lib/actions/candlepin/owner/import.rb
katello-4.14.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.14.0.rc1.1 app/lib/actions/candlepin/owner/import.rb
katello-4.14.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.13.1 app/lib/actions/candlepin/owner/import.rb
katello-4.13.0 app/lib/actions/candlepin/owner/import.rb
katello-4.12.1 app/lib/actions/candlepin/owner/import.rb
katello-4.13.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.12.0 app/lib/actions/candlepin/owner/import.rb
katello-4.12.0.rc3 app/lib/actions/candlepin/owner/import.rb
katello-4.12.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.12.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.11.1 app/lib/actions/candlepin/owner/import.rb
katello-4.11.0 app/lib/actions/candlepin/owner/import.rb