Module debby.scripts
Sub-modules
debby.scripts.scriptdebby.scripts.script_stagedebby.scripts.scripts
Classes
class Script (stage: ScriptStage, path: Optional[pathlib.Path] = None, commands: Sequence[str] = ())-
A script to run at a specific stage of the package's lifecycle.
Class variables
var commands : Sequence[str]-
The commands to run at the given stage.
var path : Optional[pathlib.Path]-
The path to the script to run at the given stage.
var stage : ScriptStage-
The stage of the package's lifecycle to run the script at.
Methods
def create(self, path: pathlib.Path) ‑> None-
Put the script in the given directory.
class ScriptStage (*values)-
The stages of the package's lifecycle that a script can run at.
Ancestors
- enum.Enum
Class variables
var POSTINST-
The type of the None singleton.
var POSTRM-
The type of the None singleton.
var PREINST-
The type of the None singleton.
var PRERM-
The type of the None singleton.
Instance variables
prop descriptive_name : str-
A descriptive name for the script. E.g. 'pre-installation', 'post-installation', 'pre-removal', 'post-removal'.
prop name : str-
The name of the script. E.g. 'preinst', 'postinst', 'prerm', 'postrm'.
class Scripts (args: Args)-
Scripts to run at different stages of the package's lifecycle.
Methods
def create(self, path: pathlib.Path) ‑> None