added python

This commit is contained in:
Rafael.Timmerberg 2013-08-20 03:06:08 +02:00
commit 732e223357
2 changed files with 11 additions and 5 deletions

View file

@ -16,7 +16,7 @@ VERSION = "0.1"
class LishFrontend(Frontend):
def __init__(self, **kwargs):
print(kwargs)
#print(kwargs)
#self.jobs = kwargs["jobs"]
commander = LishCommander(kwargs)
@ -150,6 +150,16 @@ class LishCommander(Exit, ShellCommander, LogCommander):
except KeyboardInterrupt, ke:
pass
def do_python(self, text):
exec text
def help_python(self):
print '''
executes python using 'exec'.
'''
def help_hostgroup(self):
print '''