Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-14 15:32:49 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-14 15:40:37 (GMT)
commit66dc2e7ea7011ae63e1d404ebffeaa7782a7f2f5 (patch)
treea862db846c2bdb303a96108502402115eef40693 /commands
parentf83756431a5b6f8551f0902655ca39bf18a5e5b0 (diff)
Refactor check-system to use a devbot module
This is necessary to be able to share code, all the commands will be gradually refactored to follow this pattern.
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/check-system8
-rw-r--r--commands/common.py12
2 files changed, 20 insertions, 0 deletions
diff --git a/commands/check-system b/commands/check-system
new file mode 100755
index 0000000..aca432f
--- /dev/null
+++ b/commands/check-system
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+
+import common
+
+from devbot import system
+
+common.setup()
+system.check()
diff --git a/commands/common.py b/commands/common.py
new file mode 100644
index 0000000..2836291
--- /dev/null
+++ b/commands/common.py
@@ -0,0 +1,12 @@
+import os
+import sys
+
+base_path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+
+sys.path.append(base_path)
+
+from devbot import system
+from devbot import config
+
+def setup():
+ config.set_path(os.path.join(base_path, "scripts", "deps"))