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