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.4.0.2 app/lib/actions/candlepin/owner/import.rb
katello-4.4.0.1 app/lib/actions/candlepin/owner/import.rb
katello-4.3.1 app/lib/actions/candlepin/owner/import.rb
katello-4.4.0 app/lib/actions/candlepin/owner/import.rb
katello-4.4.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.4.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.2.2 app/lib/actions/candlepin/owner/import.rb
katello-4.3.0 app/lib/actions/candlepin/owner/import.rb
katello-4.3.0.rc4 app/lib/actions/candlepin/owner/import.rb
katello-4.3.0.rc3 app/lib/actions/candlepin/owner/import.rb
katello-4.3.0.rc2.1 app/lib/actions/candlepin/owner/import.rb
katello-4.3.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.3.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.2.1 app/lib/actions/candlepin/owner/import.rb
katello-4.2.0.1 app/lib/actions/candlepin/owner/import.rb
katello-4.1.4 app/lib/actions/candlepin/owner/import.rb
katello-4.2.0.1.rc3 app/lib/actions/candlepin/owner/import.rb
katello-4.2.0.1.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.2.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.1.3 app/lib/actions/candlepin/owner/import.rb