Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-23 13:32:59 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-23 13:32:59 (GMT)
commit9e9ef41f46a61539929dce1455fcfaf1a8ecc89a (patch)
treeb858c482a853f6a01a6ff83944f536cede650944 /devbot
parentf3f2936331ce7e27c4e4c3326513d542a0c94be3 (diff)
Refactoring leftovers
Diffstat (limited to 'devbot')
-rwxr-xr-xdevbot/autoinstall.py4
-rw-r--r--devbot/config.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/devbot/autoinstall.py b/devbot/autoinstall.py
index 0b9fac4..9e1fda0 100755
--- a/devbot/autoinstall.py
+++ b/devbot/autoinstall.py
@@ -37,8 +37,8 @@ def changed_cb(monitor, file, other_file, event_flags, module):
def observe():
for module in config.load_modules():
- if module.get("autoinstall", False):
- print "Observing the %s module" % module["name"]
+ if module.auto_install:
+ print "Observing the %s module" % module.name
source_dir = module.get_source_dir()
for root, dirs, files in os.walk(source_dir):
diff --git a/devbot/config.py b/devbot/config.py
index 85ed9d3..72a1108 100644
--- a/devbot/config.py
+++ b/devbot/config.py
@@ -31,6 +31,7 @@ class Module:
self.repo = info["repo"]
self.branch = info.get("branch", "master")
self.out_of_source = info.get("out-of-source", True)
+ self.auto_install = info.get("auto-install", False)
def get_source_dir(self):
return os.path.join(source_dir, self.name)