示例#1
0
文件: views.py 项目: seanchen/pcp
    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()
示例#3
0
文件: commit.py 项目: MechanisM/pcp
 def handle(self, *args, **options):
     m = Machine.objects.all()[0]
     u = User.objects.all()[0]
     sh = SSHHandler(u, m)
     sh.commit()