summaryrefslogtreecommitdiff
path: root/firehose_call.py
diff options
context:
space:
mode:
Diffstat (limited to 'firehose_call.py')
-rw-r--r--firehose_call.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/firehose_call.py b/firehose_call.py
index bbd9111..d12a17a 100644
--- a/firehose_call.py
+++ b/firehose_call.py
@@ -5,6 +5,7 @@
FIREHOSE_DIR = '/home/williamholland/src/firehose'
LOGFILE = '/home/williamholland/orchestration/trigger_log'
+DEFINITIONS = 'ssh://git@cu010-trove.codethink.com/baserock/baserock/definitions'
from firehose_mappings import mapping
@@ -27,6 +28,11 @@ def firehose_cmd(config,loglevel='debug',log='/dev/stdout'):
] + config
return cmd
+def trigger_builder():
+ #TODO
+ log('definitions has been updated! handing over to the builder')
+ pass
+
if __name__ == '__main__':
import sys, subprocess, os
@@ -37,6 +43,9 @@ if __name__ == '__main__':
print "firehose_map.py requires a repo argument"
exit(1)
+ if repo == DEFINITIONS:
+ trigger_builder()
+
try:
configs = mapping[repo]
except: