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.11.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.11.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.10.0 app/lib/actions/candlepin/owner/import.rb
katello-4.9.2 app/lib/actions/candlepin/owner/import.rb
katello-4.10.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.10.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.8.4 app/lib/actions/candlepin/owner/import.rb
katello-4.9.1 app/lib/actions/candlepin/owner/import.rb
katello-4.8.3 app/lib/actions/candlepin/owner/import.rb
katello-4.9.0 app/lib/actions/candlepin/owner/import.rb
katello-4.7.6 app/lib/actions/candlepin/owner/import.rb
katello-4.8.2 app/lib/actions/candlepin/owner/import.rb
katello-4.9.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.9.0.rc1 app/lib/actions/candlepin/owner/import.rb
katello-4.8.1 app/lib/actions/candlepin/owner/import.rb
katello-4.7.5 app/lib/actions/candlepin/owner/import.rb
katello-4.8.0 app/lib/actions/candlepin/owner/import.rb
katello-4.8.0.rc2 app/lib/actions/candlepin/owner/import.rb
katello-4.7.4 app/lib/actions/candlepin/owner/import.rb
katello-4.8.0.rc1 app/lib/actions/candlepin/owner/import.rb