[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] Running fabric from another python script?
From: |
Erik Wickstrom |
Subject: |
[Fab-user] Running fabric from another python script? |
Date: |
Tue, 28 Jul 2009 15:37:47 -0700 |
Is it possible to use Fabric in "scripted mode" instead of from the
command line with the "fab" utility? What I'd like to do is import
fabric into my existing build scripts and run the equivalent of "fab
production blah" from within the script.
Problem is, when I try to run "production(); blah();" from within my
script I get "No hosts found. Please specify (single) host string for
connection:". (the hosts are defined in production() and work fine
from the command line.)
Any suggestions?
Erik
- [Fab-user] Running fabric from another python script?,
Erik Wickstrom <=