This commit is contained in:
Kenneth Reitz
2011-06-12 18:30:18 -04:00
parent 8f4b0575d2
commit 6cbfd8191e
Vendored
+13
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from fabric.api import *
@@ -11,6 +12,18 @@ def _run(cmd):
local(CMD_TEMPLATE.format(cmd))
def _path_to(*loc):
path_tree = __file__.split('/')[:-1]
path_tree.extend(loc)
return '/'.join(path_tree)
def docs():
os.chdir(_path_to('docs'))
os.system('make')
def prod():
"""Runs all command on the production instance."""
global CMD_TEMPLATE