l.a.run_parts : module documentation

Part of lp.archivepublisher

Publisher support for running programs from a plug-in directory.
Function find_run_parts_dir Find the requested run-parts directory, if it exists.
Function execute_subprocess Run args, handling logging and failures.
Function run_parts Execute run-parts.
def find_run_parts_dir(distribution_name, parts):
Find the requested run-parts directory, if it exists.
def execute_subprocess(args, log=None, failure=None, **kwargs):
Run args, handling logging and failures.
ParametersargsProgram argument array.
logAn optional logger.
failureRaise failure as an exception if the command returns a nonzero value. If omitted, nonzero return values are ignored.
kwargsOther keyword arguments passed on to subprocess.call.
def run_parts(distribution_name, parts, log=None, env=None):
Execute run-parts.
Parametersdistribution_nameThe name of the distribution to execute run-parts scripts for.
partsThe run-parts directory to execute: "publish-distro.d" or "finalize.d".
logAn optional logger.
envA dict of additional environment variables to pass to the scripts in the run-parts directory, or None.
API Documentation for Launchpad, generated by pydoctor at 2018-12-17 00:00:06.