Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (19 sloc) 0.766 kb
#!/usr/bin/env python
import sys, os
from subprocess import call
from distutils.sysconfig import get_python_lib
fabfile = get_python_lib() + "/littlechef.py"
if not os.path.exists(fabfile):
fabfile = fabfile.replace('/usr/lib/', '/usr/local/lib/')
if not os.path.exists(fabfile):
fabfile = __file__.replace('EGG-INFO/scripts/cook', '') + 'littlechef.py'
if not os.path.exists(fabfile):
sys.exit("There was an installation error. Couldn't find littlechef.py, try reinstalling again")
args = ['fab', '-f', fabfile]
if len(sys.argv) > 1:
# Pass on arguments to fabric
args.extend(sys.argv[1:])
else:
sys.exit("No order given. Type 'cook -l' for a list of orders\n")
# Call fabric with the given arguments
call(args)
Jump to Line
Something went wrong with that request. Please try again.