Esempio n. 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()
Esempio n. 2
0
 def handle(self, *args, **options):
     m = Machine.objects.all()[0]
     u = User.objects.all()[0]
     sh = SSHHandler(u, m)
     sh.commit()
Esempio n. 3
0
 def handle(self, *args, **options):
     m = Machine.objects.all()[0]
     u = User.objects.all()[0]
     sh = SSHHandler(u, m)
     sh.commit()