|
@ -1,6 +1,13 @@ |
|
|
"""EasyEngine base controller.""" |
|
|
"""EasyEngine base controller.""" |
|
|
|
|
|
|
|
|
from cement.core.controller import CementBaseController, expose |
|
|
from cement.core.controller import CementBaseController, expose |
|
|
|
|
|
from ee.core.variables import EEVariables |
|
|
|
|
|
VERSION = EEVariables.ee_version |
|
|
|
|
|
|
|
|
|
|
|
BANNER = """ |
|
|
|
|
|
EasyEngine v%s |
|
|
|
|
|
Copyright (c) 2015 rtCamp Solutions Pvt. Ltd. |
|
|
|
|
|
""" % VERSION |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EEBaseController(CementBaseController): |
|
|
class EEBaseController(CementBaseController): |
|
@ -9,6 +16,9 @@ class EEBaseController(CementBaseController): |
|
|
description = ("EasyEngine is the commandline tool to manage your" |
|
|
description = ("EasyEngine is the commandline tool to manage your" |
|
|
" websites based on WordPress and Nginx with easy to" |
|
|
" websites based on WordPress and Nginx with easy to" |
|
|
" use commands") |
|
|
" use commands") |
|
|
|
|
|
arguments = [ |
|
|
|
|
|
(['-v', '--version'], dict(action='version', version=BANNER)), |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
@expose(hide=True) |
|
|
@expose(hide=True) |
|
|
def default(self): |
|
|
def default(self): |
|
|