with fabric.api.settings(**settings):
fabric.api.run('pwd')
fabric.api.put('test.ini')
fabric.api.put('test.ini', '.')
fabric.api.put('test.ini', 'foo')
$ python test.py
[localhost] run: pwd
[localhost] out: /mnt/worker
[localhost] put: test.ini -> /home/pdxtest/test.ini
[localhost] put: test.ini -> /mnt/worker/./test.ini
[localhost] put: test.ini -> /mnt/worker/foo
My expectation is that the first call to put should have copied the file to /mnt/worker and not to the home directory. The other two put calls behaved as I expected.
I assume that get will have the same behavior, but I have not tested it yet.