Add LocalConnection class to connection.py
This creates a LocalConnection class for the case when operating on the localhost. If the host, argument to Connection.connect(), matches 127.0.0.1, localhost, or the name of the host as returned by os.uname()[1], Connection.connect() will opt to use LocalConnection instead of ParamikoConnection. LocalConnection implements connect(), exec_command(), put_file(), and close().
Showing
Please
register
or
sign in
to comment