Skip to content

Instantly share code, notes, and snippets.

@thedjinn
Created September 25, 2011 22:04
Show Gist options
  • Save thedjinn/1241229 to your computer and use it in GitHub Desktop.
Save thedjinn/1241229 to your computer and use it in GitHub Desktop.
(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