Project

Profile

Help

Story #7464

As a plugin writer, I can subclass and re-use ArtifactDownloader

Added by bmbouter about 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Background

Other plugin code wants to have "downloading" stages too! For example pulp_ansible needs to download DocsBlogs and has a custom stage for it.

The Issue

  1. The ArtifactDownloader doesn't have customized progress reporting here.

  2. The ArtifactDownloader is not a great name when you're not techinically downlading artifacts.

Proposal

  1. Rename ArtifactDownloader to GenericDownloader
  2. Have the progress reporting "message" be a class attribute named PROGRESS_REPORTING_MESSAGE on GenericDownloader
  3. Have the ArtifactDownloader subclass GenericDownloader and set the PROGRESS_REPORTING_MESSAGE.

Please register to edit this issue

Also available in: Atom PDF