Source

fabulator / src / fabulator / core / http / nginx.py

Full commit
# -*- coding: latin-1 -*-
"""
    Specialized class to manage nginx :
    - create the vhost (mostly)

"""

from base import BaseHTTP

class Nginx(BaseHTTP):
    
    def install_vhost(self, vhost_name):
        # need to template the vhost
        # replace the values
        # install the vhost in the desired folder
        # create the symbolic link
        # restart nginx
        pass