pyinfra.hook module

exception pyinfra.hook.Error(message)

Bases: pyinfra.api.exceptions.PyinfraError, click.exceptions.ClickException

Exception raised when encounting errors in deploy hooks.

pyinfra.hook.after_deploy(func)
pyinfra.hook.before_connect(func)
pyinfra.hook.before_deploy(func)
pyinfra.hook.before_facts(func)