harshadyeola
10 years ago
8 changed files with 146 additions and 39 deletions
@ -0,0 +1,21 @@ |
|||
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' |
|||
arguments = [ |
|||
(['--mysql'], |
|||
dict(help='get mysql configuration information', action='store_true') ), |
|||
(['--php'], |
|||
dict(help='get php configuration information', action='store_true') ), |
|||
(['--nginx'], |
|||
dict(help='get nginx configuration information', action='store_true') ), |
|||
] |
|||
|
|||
@expose(hide=True) |
|||
def default(self): |
|||
# Default action for ee debug command |
|||
print ("Inside EEInfoController.default().") |
@ -0,0 +1,21 @@ |
|||
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' |
|||
arguments = [ |
|||
(['--mysql'], |
|||
dict(help='get mysql configuration information', action='store_true') ), |
|||
(['--php'], |
|||
dict(help='get php configuration information', action='store_true') ), |
|||
(['--nginx'], |
|||
dict(help='get nginx configuration information', action='store_true') ), |
|||
] |
|||
|
|||
@expose(hide=True) |
|||
def default(self): |
|||
# TODO Default action for ee debug command |
|||
print ("Inside EEImprtslowlogController.default().") |
@ -0,0 +1,22 @@ |
|||
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' |
|||
arguments = [ |
|||
(['--ip'], |
|||
dict(help='whitelist ip addresses to access admin tools without authentication', |
|||
action='store_true') ), |
|||
(['--auth'], |
|||
dict(help='change http auth credentials', action='store_true') ), |
|||
(['--port'], |
|||
dict(help='change port for admin tools default is 22222', action='store_true') ), |
|||
] |
|||
|
|||
@expose(hide=True) |
|||
def default(self): |
|||
# Default action for ee debug command |
|||
print ("Inside EESecureController.default().") |
Loading…
Reference in new issue