summaryrefslogtreecommitdiff
path: root/firehose
diff options
context:
space:
mode:
authorBob Mottram <bob.mottram@codethink.co.uk>2015-03-31 11:57:15 +0100
committerFrancisco Redondo <francisco.marchena@codethink.co.uk>2015-06-11 15:57:50 +0000
commit455d894edb636acea2009cbb38e69d4dfb35631a (patch)
tree219ddd3cb4c06c260fe44cfdfeb8c3fd08cda0b9 /firehose
parent8da086debba74467b433a202f0741392edf56772 (diff)
downloadfirehose-455d894edb636acea2009cbb38e69d4dfb35631a.tar.gz
Add git settings
This appears to be the manner in which settings are defined elsewhere and additional git settings have been added Change-Id: Iffbbe7bbfdddc61e4f1a4e392a00a56cd8c1cbdf
Diffstat (limited to 'firehose')
-rw-r--r--firehose/plugin/firehose_plugin.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/firehose/plugin/firehose_plugin.py b/firehose/plugin/firehose_plugin.py
index d1bbf31..15b5844 100644
--- a/firehose/plugin/firehose_plugin.py
+++ b/firehose/plugin/firehose_plugin.py
@@ -41,8 +41,18 @@ class FirehosePlugin(cliapp.Plugin):
def enable(self):
self.app.add_subcommand('firehose', self.firehose_cmd,
arg_synopsis='some-firehose.yaml...')
- self.app.settings(['gerrit_username'], 'gerrit_username')
- self.app.settings(['gerrit_url'], 'gerrit_url')
+ self.app.settings.string(['gerrit_username'],
+ 'Username for gerrit',
+ default=None)
+ self.app.settings.string(['gerrit_url'],
+ 'URL for gerrit',
+ default='gerrit.baserock.org')
+ self.app.settings.string(['git_username'],
+ 'git username',
+ default=None)
+ self.app.settings.string(['git_email'],
+ 'git email address',
+ default=None)
def disable(self):
pass