summaryrefslogtreecommitdiff
path: root/lorry-controller-minion
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2019-07-09 17:19:38 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2019-07-09 17:25:08 +0100
commit721cef29357d960ab3a670f37bc45f0df6f853a3 (patch)
tree81816cd64a2b790c05a4a40e02df53f1dbf997cf /lorry-controller-minion
parenta28169aedea4ef9245b2042972bd4d2eb41b20ec (diff)
downloadlorry-controller-721cef29357d960ab3a670f37bc45f0df6f853a3.tar.gz
Minion: Support setting lorry config file
Diffstat (limited to 'lorry-controller-minion')
-rwxr-xr-xlorry-controller-minion16
1 files changed, 13 insertions, 3 deletions
diff --git a/lorry-controller-minion b/lorry-controller-minion
index 9eb6657..459130e 100755
--- a/lorry-controller-minion
+++ b/lorry-controller-minion
@@ -74,6 +74,11 @@ class MINION(cliapp.Application):
default='lorry')
self.settings.string(
+ ['lorry-config'],
+ 'lorry configuration file to use',
+ metavar='LORRY_CFG')
+
+ self.settings.string(
['lorry-working-area'],
'where will Lorry put its files?',
metavar='DIR',
@@ -157,10 +162,15 @@ class MINION(cliapp.Application):
os.write(fd, job_spec['text'])
os.close(fd)
+
argv = [
- self.settings['lorry-cmd'],
- self.temp_lorry_filename,
- ]
+ self.settings['lorry-cmd']
+ ]
+
+ if self.settings['lorry-config']:
+ argv.extend(['--config', self.settings['lorry-config']])
+
+ argv.append(self.temp_lorry_filename)
pipe = os.pipe()
self.stdout_fd = pipe[0]