Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/command.py')
-rw-r--r--devbot/command.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/devbot/command.py b/devbot/command.py
index aaef58f..8ccef6c 100644
--- a/devbot/command.py
+++ b/devbot/command.py
@@ -3,10 +3,12 @@ import time
_logger = None
+
def set_logger(logger):
global _logger
_logger = logger
+
def run(args, log=None, test=False, retry=0):
print " ".join(args)
if test:
@@ -30,6 +32,7 @@ def run(args, log=None, test=False, retry=0):
else:
raise e
+
def run_with_sudo(args, test=False, retry=0):
args_with_sudo = ["sudo"]
args_with_sudo.extend(args)