pyinfra.local module

pyinfra.local.include(filename)

Executes a local python file within the pyinfra.pseudo_state.deploy_dir directory.

pyinfra.local.shell(commands, splitlines=False, ignore_errors=False, print_output=False, print_input=False)

Subprocess based implementation of pyinfra/api/ssh.py’s run_shell_command.

Parameters
  • commands (string, list) – command or list of commands to execute
  • spltlines (bool) – optionally have the output split by lines
  • ignore_errors (bool) – ignore errors when executing these commands