Browse Source

Added some core packages

bugfixes
gau1991 10 years ago
parent
commit
79e41fc268
  1. 9
      ee/core/checkpackage.py
  2. 17
      ee/core/domaincheck.py
  3. 1
      ee/core/dummy.py
  4. 4
      ee/core/exc.py
  5. 23
      ee/core/info.py
  6. 8
      ee/core/permissions.py
  7. 4
      ee/core/services.py
  8. 7
      ee/core/swapcreation.py

9
ee/core/checkpackage.py

@ -0,0 +1,9 @@
"""EasyEngine package check module."""
class EEPackageCheck():
"""Intialization for package check"""
def ___init__():
# TODO Intialization for package check
pass

17
ee/core/domaincheck.py

@ -0,0 +1,17 @@
"""EasyEngine domain check module."""
class EEDomainCheck():
"""Intialization domain check"""
def ___init__():
# TODO Intialization for domain check
pass
"""Check for proper domain"""
def isdomain():
# TODO method for doamin check
pass
"""Check for proper Fully qualified domain"""
def isfqdn():
# TODO method for FQDN check
pass

1
ee/core/dummy.py

@ -1,5 +1,6 @@
"""EasyEngine dummy core classes."""
class EEDummy():
"""Generic errors."""
def __init__():

4
ee/core/exc.py

@ -1,5 +1,6 @@
"""EasyEngine exception classes."""
class EEError(Exception):
"""Generic errors."""
def __init__(self, msg):
@ -9,14 +10,17 @@ class EEError(Exception):
def __str__(self):
return self.msg
class EEConfigError(EEError):
"""Config related errors."""
pass
class EERuntimeError(EEError):
"""Generic runtime errors."""
pass
class EEArgumentError(EEError):
"""Argument related errors."""
pass

23
ee/core/info.py

@ -0,0 +1,23 @@
"""EasyEngine Nginx, PHP, MySQL info module."""
class EEInfo():
"""Intialization for info"""
def ___init__():
# TODO common method for info
pass
"""Method to disaply info for PHP"""
def infophp():
# TODO info for php
pass
"""Method to disaply info for Nginx"""
def infonginx():
# TODO info for Nginx
pass
"""Method to disaply info for MySQL"""
def infomysql():
# TODO info for MySQL
pass

8
ee/core/permissions.py

@ -0,0 +1,8 @@
"""EasyEngine set permission module"""
class EESetPermission():
"""Intialization set permission"""
def ___init__():
# TODO method for set permission
pass

4
ee/core/services.py

@ -1,6 +1,8 @@
"""EasyEngine service start/stop/restart module."""
class EEService():
class EEService():
"""Intialization for service"""
def ___init__():
# TODO method for services
pass

7
ee/core/swapcreation.py

@ -0,0 +1,7 @@
"""EasyEngine swap creation module."""
Class EESwapCreation():
"""Generice swap creation intialisation"""
def __init__():
# TODO method for swap creation
pass
Loading…
Cancel
Save