fabtools.utils

Utilities

fabtools.utils.run_as_root(command, *args, **kwargs)[source]

Run a remote command as the root user.

When connecting as root to the remote system, this will use Fabric’s run function. In other cases, it will use sudo.