mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42:15 +03:00
Abstract command class
This commit is contained in:
parent
de36cfae35
commit
5e2a058412
1 changed files with 25 additions and 0 deletions
25
opt/ahenk/base/plugin/AbstractCommand.py
Normal file
25
opt/ahenk/base/plugin/AbstractCommand.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||
from base.Scope import Scope
|
||||
|
||||
class AbstractCommand(object):
|
||||
"""docstring for AbstractCommand"""
|
||||
def __init__(self):
|
||||
super(AbstractCommand, self).__init__()
|
||||
self.scope = Scope.getInstance()
|
||||
|
||||
def run():
|
||||
# implement this metot from command
|
||||
pass
|
||||
|
||||
def logger(self):
|
||||
try:
|
||||
return self.scope.getLogger()
|
||||
except Exception as e:
|
||||
print('Logger did not found')
|
||||
return None
|
||||
|
||||
def addMessageResponseQueue(self):
|
||||
# TODO implement response queue
|
||||
pass
|
Loading…
Reference in a new issue