Sha256: 081528668e595e66391d516df147d82107b9bebff5db623388504d7372617d79

Contents?: true

Size: 751 Bytes

Versions: 9

Compression:

Stored size: 751 Bytes

Contents

module Actions
  module Pulp
    module Repository
      class ImportUpload < Pulp::AbstractAsyncTask
        input_format do
          param :pulp_id
          param :unit_type_id
          param :upload_id
          param :unit_key
        end

        def invoke_external_task
          pulp_resources.content.import_into_repo(input[:pulp_id],
                                                   input[:unit_type_id],
                                                   input[:upload_id],
                                                   input[:unit_key],
                                                    unit_metadata: {})
        end

        def rescue_strategy
          Dynflow::Action::Rescue::Skip
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.0.2 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.1 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.0 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.0.rc7 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.0.rc5 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.0.rc4 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.0.rc3 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.0.rc2 app/lib/actions/pulp/repository/import_upload.rb
katello-3.0.0.rc1 app/lib/actions/pulp/repository/import_upload.rb