heynemann/provy — pull request #49 by diogobaeder (2012-09-10 08:18:15+00:00)
Title: PostgreSQLRole + enhancements (fixed)

(This is a fixed version from my previous pull request, except that now it's working fine, and has some improved logs.)

This request has some enhancements to provy, the main of which being the new PostgreSQLRole.

Another important change is the ability of executing commands with a different user (which is accomplished by passing the "user" argument to fabric's "sudo" function), which is useful for cases like Postgres - where the command must be run with the "postgres" user -.

I also did some source code formatting to stick to PEP8.