ansible/ansible — pull request #123 by sfromm (2012-04-07 00:13:49+00:00)
Title: 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().