diff options
author | Micah Anderson <micah@leap.se> | 2014-06-19 14:12:08 -0400 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2014-06-19 14:12:08 -0400 |
commit | 9198af78956972a01aaf85e19753c5c9e62ea018 (patch) | |
tree | 7c2c4901c92528b2fababb0e4283d5bec6cd1aef /provider_base/services | |
parent | 6100b6ded99241f10e7fb12c13a0820fda084912 (diff) | |
parent | f991e8a4c877cff1d274fd1cac26488f8c3fda84 (diff) |
Merge tag '0.5.2'
tagging 0.5.2 release
Diffstat (limited to 'provider_base/services')
-rw-r--r-- | provider_base/services/static.json | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/provider_base/services/static.json b/provider_base/services/static.json index d9155a84..d9f52b36 100644 --- a/provider_base/services/static.json +++ b/provider_base/services/static.json @@ -1,6 +1,13 @@ { "static": { - "formats": "=> (self.static.domains||{}).values.collect{|d| (d.locations||{}).values.collect{|l|l['format']}}.flatten.uniq" + "formats": "=> try{static.domains.values.collect{|d| try{d.locations.values.collect{|l|l.format}} }.flatten.compact.uniq} || []", + // include a copy of provider.json in case any of the configured domains happens to match provider.domain + "bootstrap_files": { + "domain": "= provider.domain", + "enabled": "= !! try{static.domains[provider.domain]}", + "provider_json": "=> static.bootstrap_files.enabled ? try{nodes_like_me[:services => 'webapp'].values.first.definition_files['provider']} : nil", + "client_version": "= static.bootstrap_files.enabled ? provider.client_version : nil" + } }, "service_type": "public_service" }
\ No newline at end of file |