Part of libcloud.test.compute.test_deployment View Source View In Hierarchy
Method | __init__ | |
Method | put | Upload a file to the remote node. |
Method | run | Run a command on a remote node. |
Method | delete | Delete/Unlink a file on the remote node. |
Inherited from BaseSSHClient:
Method | connect | Connect to the remote node over SSH. |
Method | close | Shutdown connection to the remote node. |
Parameters | hostname | Hostname or IP address to connect to. (type: str ) |
port | TCP port to communicate on, defaults to 22. (type: int ) | |
username | Username to use, defaults to root. (type: str ) | |
password | Password to authenticate with. (type: str ) | |
key | Private SSH keys to authenticate with. (type: list ) |
Parameters | path | File path on the remote node. (type: str ) |
contents | File Contents. (type: str ) | |
chmod | chmod file to this after creation. (type: int ) | |
mode | Mode in which the file is opened. (type: str ) |
Run a command on a remote node. @type cmd: C{str} @keyword cmd: Command to run. @return C{list} of [stdout, stderr, exit_status]
Parameters | path | File path on the remote node. (type: str ) |