pyinfra.api.host module

class pyinfra.api.host.Host(name, inventory, groups, data, executor=<module 'pyinfra.api.connectors.ssh' from '/Users/nick/Dropbox/_dev/Webroot/pyinfra/src/pyinfra/api/connectors/ssh.py'>)

Bases: object

Represents a target host. Thin class that links up to facts and host/group data.

check_can_rsync()
connect(for_fact=None, show_errors=True)
connection = None
disconnect()
fact = <pyinfra.api.host.HostFacts object>
get_file(*args, **kwargs)
property group_data
property host_data
noop(description)

Log a description for a noop operation.

property print_prefix
put_file(*args, **kwargs)
rsync(*args, **kwargs)
run_shell_command(*args, **kwargs)
state = None
style_print_prefix(*args, **kwargs)
class pyinfra.api.host.HostFacts(host=None)

Bases: object