Ahenk/opt/ahenk/plugins/sample/shutdown.py

20 lines
466 B
Python
Raw Normal View History

2016-10-11 14:46:14 +03:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from base.plugin.abstract_plugin import AbstractPlugin
class Shutdown(AbstractPlugin):
def __init__(self, context):
super(Shutdown, self).__init__()
self.context = context
self.logger = self.get_logger()
def handle_shutdown_mode(self):
# TODO Do what do you want to do!
pass
def handle_mode(context):
shutdown = Shutdown(context)
shutdown.handle_shutdown_mode()