Created
September 25, 2011 22:04
-
-
Save thedjinn/1241229 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(djinn@pietbook)-(105/ttys020)-(00:04:16:26-09-11)-(~/code/fabutil)-(master) | |
$ cat fabfile.py | |
from fabutil import * | |
@task | |
def foo(): | |
print "i'm in foo" | |
@task | |
def bar(): | |
print "i'm in bar" | |
foo() | |
(djinn@pietbook)-(106/ttys020)-(00:04:22:26-09-11)-(~/code/fabutil)-(master) | |
$ fab bar | |
>>> entering bar | |
i'm in bar | |
>>> entering foo | |
i'm in foo | |
>>> leaving foo | |
>>> leaving bar | |
Done. | |
(djinn@pietbook)-(107/ttys020)-(00:04:26:26-09-11)-(~/code/fabutil)-(master) | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment