mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
loc
This commit is contained in:
Vendored
+13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user