5 changed files with 113 additions and 1 deletions
@ -0,0 +1,34 @@ |
|||||
|
"""EasyEngine site controller.""" |
||||
|
|
||||
|
from cement.core.controller import CementBaseController, expose |
||||
|
|
||||
|
class EECleanController(CementBaseController): |
||||
|
class Meta: |
||||
|
label = 'clean' |
||||
|
interface = controller.IController |
||||
|
stacked_on = 'base' |
||||
|
stacked_type = 'nested' |
||||
|
description = 'clean command cleans different cache with following options' |
||||
|
(['-f', '--foo'], |
||||
|
dict(help='the notorious foo option', dest='foo', action='store', |
||||
|
metavar='TEXT') ), |
||||
|
] |
||||
|
|
||||
|
@expose(hide=True) |
||||
|
def default(self): |
||||
|
# Default action for ee clean command |
||||
|
print ("Inside EECleanController.default().") |
||||
|
|
||||
|
# clean command Options and subcommand calls and definations to |
||||
|
# mention here |
||||
|
|
||||
|
# If using an output handler such as 'mustache', you could also |
||||
|
# render a data dictionary using a template. For example: |
||||
|
# |
||||
|
# data = dict(foo='bar') |
||||
|
# self.app.render(data, 'default.mustache') |
||||
|
# |
||||
|
# |
||||
|
# The 'default.mustache' file would be loaded from |
||||
|
# ``ee.cli.templates``, or ``/var/lib/ee/templates/``. |
||||
|
# |
@ -0,0 +1,34 @@ |
|||||
|
"""EasyEngine site controller.""" |
||||
|
|
||||
|
from cement.core.controller import CementBaseController, expose |
||||
|
|
||||
|
class EEDebugController(CementBaseController): |
||||
|
class Meta: |
||||
|
label = 'debug' |
||||
|
interface = controller.IController |
||||
|
stacked_on = 'base' |
||||
|
stacked_type = 'nested' |
||||
|
description = 'debug command used for debugging issued with stack or site specific configuration' |
||||
|
(['-f', '--foo'], |
||||
|
dict(help='the notorious foo option', dest='foo', action='store', |
||||
|
metavar='TEXT') ), |
||||
|
] |
||||
|
|
||||
|
@expose(hide=True) |
||||
|
def default(self): |
||||
|
# Default action for ee debug command |
||||
|
print ("Inside EEDebugController.default().") |
||||
|
|
||||
|
# debug command Options and subcommand calls and definations to |
||||
|
# mention here |
||||
|
|
||||
|
# If using an output handler such as 'mustache', you could also |
||||
|
# render a data dictionary using a template. For example: |
||||
|
# |
||||
|
# data = dict(foo='bar') |
||||
|
# self.app.render(data, 'default.mustache') |
||||
|
# |
||||
|
# |
||||
|
# The 'default.mustache' file would be loaded from |
||||
|
# ``ee.cli.templates``, or ``/var/lib/ee/templates/``. |
||||
|
# |
@ -0,0 +1,34 @@ |
|||||
|
"""EasyEngine site controller.""" |
||||
|
|
||||
|
from cement.core.controller import CementBaseController, expose |
||||
|
|
||||
|
class EEStackController(CementBaseController): |
||||
|
class Meta: |
||||
|
label = 'stack' |
||||
|
interface = controller.IController |
||||
|
stacked_on = 'base' |
||||
|
stacked_type = 'nested' |
||||
|
description = 'stack command manages stack operations' |
||||
|
(['-f', '--foo'], |
||||
|
dict(help='the notorious foo option', dest='foo', action='store', |
||||
|
metavar='TEXT') ), |
||||
|
] |
||||
|
|
||||
|
@expose(hide=True) |
||||
|
def default(self): |
||||
|
# Default action for ee stack command |
||||
|
print ("Inside EEStackController.default().") |
||||
|
|
||||
|
# stack command Options and subcommand calls and definations to |
||||
|
# mention here |
||||
|
|
||||
|
# If using an output handler such as 'mustache', you could also |
||||
|
# render a data dictionary using a template. For example: |
||||
|
# |
||||
|
# data = dict(foo='bar') |
||||
|
# self.app.render(data, 'default.mustache') |
||||
|
# |
||||
|
# |
||||
|
# The 'default.mustache' file would be loaded from |
||||
|
# ``ee.cli.templates``, or ``/var/lib/ee/templates/``. |
||||
|
# |
Loading…
Reference in new issue