Parameterize main() for explicit fabfile selection by non-fab stubs #761

Closed
bitprophet opened this Issue Oct 19, 2012 · 0 comments

Projects

None yet

1 participant

@bitprophet
Member

Downstream clients sometimes want to use a custom Python "binary" stub script that loads up their own library code, a specific fabfile, or does other bookkeeping-y things prior to calling Fabric. In these situations they typically do still want to expose Fabric's CLI API at the end of the run (and/or don't want to force users to always call fab -f /path/to/fabfile.)

Unfortunately, fabric.main.main() is un-parameterized and it's not possible to even pass in a specific fabfile.

This would be a small change that makes things more flexible for some users, without requiring us/me to totally rearchitect main.py.

@bitprophet bitprophet added a commit that referenced this issue Oct 19, 2012
@bitprophet bitprophet Changelog re #761 63b4f13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment