Skip to content

Commit

Permalink
Add a docstring for copy-repo [RHELDST-28512]
Browse files Browse the repository at this point in the history
Add docstring to the CopyRepo class for completing the docs generation.
  • Loading branch information
Gdetrane committed Jan 23, 2025
1 parent f6406b1 commit 5443d05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pubtools/_pulp/tasks/copy_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ def __call__(self, /, *args, **keywords):


class CopyRepo(CollectorService, PulpClientService, PulpRepositoryOperation):
"""
Copy content from one repository to another.
This command copies content from one repository to another, for multiple provided `source,destination` pairs.
Copied content may optionally be filtered on content types.
If the user provides a non existing repo, the command fails.
"""
@property
def content_type_criteria(self):
# Only return non-None if there were really any types given.
Expand Down

0 comments on commit 5443d05

Please sign in to comment.