Sha256: 2952b4e97edd41ca94e22c944cfa07a6201a2edac8397f4031c35eb61ad3110e

Contents?: true

Size: 683 Bytes

Versions: 13

Compression:

Stored size: 683 Bytes

Contents

module Actions
  module Katello
    module Repository
      class ImportUpload < Actions::EntryAction
        def plan(repository, upload_id)
          action_subject(repository)
          import_upload = plan_action(Pulp::Repository::ImportUpload,
                                      pulp_id: repository.pulp_id,
                                      unit_type_id: repository.unit_type_id,
                                      unit_key: {},
                                      upload_id: upload_id)

          plan_action(FinishUpload, repository, import_upload.output)
        end

        def humanized_name
          _("Upload into")
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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