示例#1
0
 def status(self):
     session = self.config["session"]
     self.out("Tmux session      :", Tmux.HasSession(session))
     self.out("Tmux webapp       :", Tmux.HasWindow(session, "webapp"))
     self.out("Webapp running    :",
              Process.FindLike(self.config["webapp"]) and True or False)
     self.out("Webapp responsive :", self.ping().isSuccess())
示例#2
0
 def Has(cls, name):
     return Tmux.HasSession(name) and Tmux.HasWindow(name, "daemon")