Exemple #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())
Exemple #2
0
 def Has(cls, name):
     return Tmux.HasSession(name) and Tmux.HasWindow(name, "daemon")