Пример #1
0
    def run(self):
        # sleep because of web server restart/reload
        time.sleep(10)
        
        sh = SSHHandler(None, None)
        sh.commit()

        f = open("/tmp/committest", "w")
        f.write("ready")
        f.close()
Пример #2
0
 def handle(self, *args, **options):
     m = Machine.objects.all()[0]
     u = User.objects.all()[0]
     sh = SSHHandler(u, m)
     sh.commit()