-
Notifications
You must be signed in to change notification settings - Fork 6
/
fabfile.py
38 lines (26 loc) · 1.82 KB
/
fabfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from __future__ import with_statement
from fabric.api import *
# THESE ARE UTILITY FUNCTIONS USED IN DEVELOPMENT AND DATA CONVERSION
# THEY ARE LEFT HERE IN CASE THEY ARE USEFUL TO ANYBODY
# BUT THEY WON'T WORK WITH STANDARD REPO.
def reload_locations():
# local('python engineclub/apps/firebox/utils.py -c loadlocations -d test_db -p engineclub/apps/firebox/sources', capture=False)
local('python engineclub/apps/firebox/utils.py -c loadlocations -d aliss -p engineclub/apps/firebox/sources', capture=False)
# def convert_to_newlocations():
# # local('python engineclub/apps/firebox/utils.py -c convert_to_newlocations -d test_db', capture=False)
# local('python engineclub/apps/firebox/utils.py -c convert_to_newlocations -d aliss', capture=False)
# def bak_locations():
# # local('python engineclub/apps/firebox/utils.py -c bak_locations -d test_db', capture=False)
# local('python engineclub/apps/firebox/utils.py -c bak_locations -d aliss', capture=False)
# def fix_pcdistricts():
# local('python engineclub/apps/firebox/utils.py -c fix_pcdistricts', capture=False)
# def reload_postcodes():
# local('python engineclub/apps/firebox/utils.py -c loadpostcodes -f engineclub/apps/firebox/sources/geonames/GB-postcodes/GB_full.csv', capture=False)
# def test_reload_postcodes():
# local('python engineclub/apps/firebox/utils.py -c loadpostcodes -d test_db2 -f engineclub/apps/firebox/sources/geonames/GB-postcodes/GB_full.csv', capture=False)
# def reload_placenames():
# local('python engineclub/apps/firebox/utils.py -c loadplacenames -f engineclub/apps/firebox/sources/geonames/GB-places/GB.txt', capture=False)
# def reindex():
# local('python engineclub/apps/firebox/utils.py -c reindex', capture=False)
# def temp():
# local('python engineclub/apps/firebox/utils.py -c temp', capture=False)