Merge ~jugmac00/launchpad:improve-docstrings-run-parts into launchpad:master

Proposed by Jürgen Gmach
Status: Merged
Approved by: Jürgen Gmach
Approved revision: 90d9fae8cc7dc221d90fb0905e21d95fa80ce69e
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~jugmac00/launchpad:improve-docstrings-run-parts
Merge into: launchpad:master
Diff against target: 32 lines (+12/-2)
1 file modified
lib/lp/archivepublisher/run_parts.py (+12/-2)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+448090@code.launchpad.net

Commit message

Improve docstrings in the run-parts module

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve
Revision history for this message
Jürgen Gmach (jugmac00) :
Revision history for this message
Jürgen Gmach (jugmac00) :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/archivepublisher/run_parts.py b/lib/lp/archivepublisher/run_parts.py
2index 7391216..917c824 100644
3--- a/lib/lp/archivepublisher/run_parts.py
4+++ b/lib/lp/archivepublisher/run_parts.py
5@@ -1,7 +1,14 @@
6 # Copyright 2011-2018 Canonical Ltd. This software is licensed under the
7 # GNU Affero General Public License version 3 (see the file LICENSE).
8
9-"""Publisher support for running programs from a plug-in directory."""
10+"""Publisher support for running programs from a plug-in directory.
11+
12+This module offers a thin wrapper around the system application `run-parts`,
13+which runs scripts or programs in a given directory.
14+
15+This is used to allow deployments of the publisher code to drop in hook scripts
16+that are run at certain stages of publishing.
17+"""
18
19 __all__ = [
20 "execute_subprocess",
21@@ -53,7 +60,10 @@ def execute_subprocess(args, log=None, failure=None, **kwargs):
22
23
24 def run_parts(distribution_name, parts, log=None, env=None):
25- """Execute run-parts.
26+ """Execute the system application `run-parts`.
27+
28+ `run-parts` runs scripts or programs in a given directory.
29+ See https://manpages.ubuntu.com/run-parts.
30
31 :param distribution_name: The name of the distribution to execute
32 run-parts scripts for.

Subscribers

People subscribed via source and target branches

to status/vote changes: