added some testing code to the snmpget builtin and renamed service to services/

This commit is contained in:
Johannes Findeisen 2013-06-10 04:14:53 +02:00
commit ee687e3f68
8 changed files with 58 additions and 0 deletions

View file

@ -1,17 +0,0 @@
"""
The shell service. This is for executing local shell commands and retrieve the output.
"""
from service import Service
class ShellService(Service):
def __init__(self, parser, log, **kwargs):
super(Service, self).__init__(parser)
if "command" in kwargs:
self.command = kwargs["command"]
else:
log.w("There is no command")
def execute(self):
self.command.call()