Connection as a context manager #1

Merged
merged 1 commit into from Sep 10, 2013

Conversation

Projects
None yet
2 participants
@shaunduncan
Contributor

shaunduncan commented Sep 10, 2013

I'd like to use remoto.Connection as a context manager so I can do things like:

with remoto.Connection('example.com') as conn:
    run(conn, ['ls', '-la'])

This simple addition will let me do that.

@alfredodeza

This comment has been minimized.

Show comment Hide comment
@alfredodeza

alfredodeza Sep 10, 2013

Owner

Thank you sir

Owner

alfredodeza commented Sep 10, 2013

Thank you sir

alfredodeza added a commit that referenced this pull request Sep 10, 2013

Merge pull request #1 from shaunduncan/master
Connection as a context manager

@alfredodeza alfredodeza merged commit 20368fb into alfredodeza:master Sep 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment