harshadyeola
10 years ago
11 changed files with 92 additions and 60 deletions
@ -1,21 +1,26 @@ |
|||
from cement.core.controller import CementBaseController, expose |
|||
|
|||
|
|||
class EEInfoController(CementBaseController): |
|||
class Meta: |
|||
label = 'info' |
|||
stacked_on = 'base' |
|||
stacked_type = 'nested' |
|||
description = 'info command used for debugging issued with stack or site specific configuration' |
|||
description = 'info command used for debugging issued with stack or \ |
|||
site specific configuration' |
|||
arguments = [ |
|||
(['--mysql'], |
|||
dict(help='get mysql configuration information', action='store_true') ), |
|||
dict(help='get mysql configuration information', |
|||
action='store_true')), |
|||
(['--php'], |
|||
dict(help='get php configuration information', action='store_true') ), |
|||
dict(help='get php configuration information', |
|||
action='store_true')), |
|||
(['--nginx'], |
|||
dict(help='get nginx configuration information', action='store_true') ), |
|||
dict(help='get nginx configuration information', |
|||
action='store_true')), |
|||
] |
|||
|
|||
@expose(hide=True) |
|||
def default(self): |
|||
# TODO Default action for ee debug command |
|||
print ("Inside EEInfoController.default().") |
|||
print("Inside EEInfoController.default().") |
|||
|
@ -1,21 +1,26 @@ |
|||
from cement.core.controller import CementBaseController, expose |
|||
|
|||
|
|||
class EEImportslowlogController(CementBaseController): |
|||
class Meta: |
|||
label = 'import_slow_log' |
|||
stacked_on = 'base' |
|||
stacked_type = 'nested' |
|||
description = 'info command used for debugging issued with stack or site specific configuration' |
|||
description = 'info command used for debugging issued with stack or \ |
|||
site specific configuration' |
|||
arguments = [ |
|||
(['--mysql'], |
|||
dict(help='get mysql configuration information', action='store_true') ), |
|||
dict(help='get mysql configuration information', |
|||
action='store_true')), |
|||
(['--php'], |
|||
dict(help='get php configuration information', action='store_true') ), |
|||
dict(help='get php configuration information', |
|||
action='store_true')), |
|||
(['--nginx'], |
|||
dict(help='get nginx configuration information', action='store_true') ), |
|||
dict(help='get nginx configuration information', |
|||
action='store_true')), |
|||
] |
|||
|
|||
@expose(hide=True) |
|||
def default(self): |
|||
# TODO Default action for ee debug command |
|||
print ("Inside EEImportslowlogController.default().") |
|||
print("Inside EEImportslowlogController.default().") |
|||
|
@ -1,22 +1,27 @@ |
|||
from cement.core.controller import CementBaseController, expose |
|||
|
|||
|
|||
class EESecureController(CementBaseController): |
|||
class Meta: |
|||
label = 'secure' |
|||
stacked_on = 'base' |
|||
stacked_type = 'nested' |
|||
description = 'secure command used for debugging issued with stack or site specific configuration' |
|||
description = 'secure command used for debugging issued with stack or \ |
|||
site specific configuration' |
|||
arguments = [ |
|||
(['--ip'], |
|||
dict(help='whitelist ip addresses to access admin tools without authentication', |
|||
action='store_true') ), |
|||
dict(help='whitelist ip addresses to access admin tools without \ |
|||
authentication', |
|||
action='store_true')), |
|||
(['--auth'], |
|||
dict(help='change http auth credentials', action='store_true') ), |
|||
dict(help='change http auth credentials', |
|||
action='store_true')), |
|||
(['--port'], |
|||
dict(help='change port for admin tools default is 22222', action='store_true') ), |
|||
dict(help='change port for admin tools default is 22222', |
|||
action='store_true')), |
|||
] |
|||
|
|||
@expose(hide=True) |
|||
def default(self): |
|||
# TODO Default action for ee debug command |
|||
print ("Inside EESecureController.default().") |
|||
print("Inside EESecureController.default().") |
|||
|
Loading…
Reference in new issue