1
0
Fork 0

Directory restructuration

This commit is contained in:
Joao Gilberto Magalhaes 2019-07-17 00:14:58 -05:00
parent eb10288717
commit b196905320
23 changed files with 127 additions and 166 deletions

16
static.py Normal file
View file

@ -0,0 +1,16 @@
import yaml
import sys
from easymapping import HaproxyConfigGenerator
if len(sys.argv) != 2:
print("You need to pass the easyconfig.cfg path")
exit(1)
with open(sys.argv[1], 'r') as content_file:
parsed = yaml.load(content_file.read())
cfg = HaproxyConfigGenerator(parsed)
print(cfg.generate())
exit(0)