Allow overriding the zookeepers property at runtime

This commit is contained in:
R. Tyler Croy 2015-09-02 06:12:09 -07:00
parent 4b5de1c70a
commit 0410ce6fc5
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 6 additions and 1 deletions

View File

@ -60,6 +60,11 @@ test {
}
}
run {
systemProperty 'zookeepers', 'localhost:2181'
dependsOn check
}
////////////////////////////////////////////////////////////////////////////////
// RELEASING
////////////////////////////////////////////////////////////////////////////////

View File

@ -14,7 +14,7 @@ import offtopic.OfftopicClient
ratpack {
bindings {
offtopic.Configuration.instance.loadDefaults()
offtopic.curator.CuratorPool.prepare(Configuration.instance.zookeepers)
offtopic.curator.CuratorPool.prepare(System.getProperty('zookeepers') ?: Configuration.instance.zookeepers)
module HandlebarsModule
module JacksonModule
}