Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

bitprophet opened this issue Oct 19, 2012 · 0 comments

Comments

@bitprophet
Copy link
Member

@bitprophet bitprophet commented Oct 19, 2012

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 added a commit that referenced this issue Oct 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant