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