Source

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

Diff from to

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

 # -*- coding: latin-1 -*-
 """
-
-
+    Specialized class to manage nginx :
+    - create the vhost (mostly)
 
 """
 
 from base import BaseHTTP
 
 class Nginx(BaseHTTP):
-    """
-
-    """
-
-    def install_vhost(self):
-        raise NotImplementedError
- 
-
-def main():
-    """some quick mains"""
-    pass
-
-if __name__ == '__main__':
-    main()
+    
+    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