Part of libcloud.test.compute.test_deployment View Source View In Hierarchy
Method | __init__ | @type hostname: C{str} @keyword hostname: Hostname or IP address to connect to. |
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. |
@type hostname: C{str} @keyword hostname: Hostname or IP address to connect to. @type port: C{int} @keyword port: TCP port to communicate on, defaults to 22. @type username: C{str} @keyword username: Username to use, defaults to root. @type password: C{str} @keyword password: Password to authenticate with. @type key: C{list} @keyword key: Private SSH keys to authenticate with.
Upload a file to the remote node. @type path: C{str} @keyword path: File path on the remote node. @type contents: C{str} @keyword contents: File Contents. @type chmod: C{int} @keyword chmod: chmod file to this after creation. @type mode: C{str} @keyword mode: Mode in which the file is opened. @return: Full path to the location where a file has been saved. @rtype: C{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]
Delete/Unlink a file on the remote node. @type path: C{str} @keyword path: File path on the remote node. @return: True if the file has been successfuly deleted, False otherwise. @rtype: C{bool}