From 2f6b87d613352f96a030fbb1758472443e74cca0 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 2 Apr 2008 23:03:08 +0000 Subject: [PATCH] added methods for interacting with host machine --- qaapi/qa/Nodes.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/qaapi/qa/Nodes.py b/qaapi/qa/Nodes.py index d1375e8..8817d4a 100644 --- a/qaapi/qa/Nodes.py +++ b/qaapi/qa/Nodes.py @@ -25,8 +25,20 @@ class Node(dict, Remote): # Merge defined fields with defaults self.update(fields) - self.config = config - + self.config = config + + def host_popen(self, command, fatal = True): + command = self.get_host_command(command) + return utils.popen(command, fatal, self.config.verbose) + + def host_popen3(self, command): + command = self.get_host_command(command) + return utils.popen3(command, self.config.verbose) + + def host_commands(self, command, fatal = True): + command = self.get_host_command(command) + return utils.commands(command, fatal, self.config.verbose) + class Nodes(list, Table): def __init__(self, config, nodes): -- 2.43.0