Sha256: 5cca90a70b3c9fbbf74226e37152c295ebdcdb377ca473ca13f74815231f5f7c

Contents?: true

Size: 711 Bytes

Versions: 9

Compression:

Stored size: 711 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
        end

        def invoke_external_task
          pulp_resources.content.import_into_repo(input[:pulp_id],
                                                   input[:unit_type_id],
                                                   input[:upload_id],
                                                   {},
                                                    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-2.4.5 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.4 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.3 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.2 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.1 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.0 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.0.rc3 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.0.rc2 app/lib/actions/pulp/repository/import_upload.rb
katello-2.4.0.rc1 app/lib/actions/pulp/repository/import_upload.rb