summaryrefslogtreecommitdiff
path: root/provider_base/files/service-definitions
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-04-08 10:51:42 -0700
committerelijah <elijah@riseup.net>2014-04-08 10:51:42 -0700
commit615b5a218e843c9fe4e41729507b6ca1f14cf7b7 (patch)
tree5e72d522ec922ec481e91aeb94c765189cf12302 /provider_base/files/service-definitions
parentb8dc78db9a8e3e36a7378fba3408b45baca6bec3 (diff)
minor: allow manual override of 'services' in provider.json
Diffstat (limited to 'provider_base/files/service-definitions')
-rw-r--r--provider_base/files/service-definitions/provider.json.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/provider_base/files/service-definitions/provider.json.erb b/provider_base/files/service-definitions/provider.json.erb
index 97454f81..3e055e9a 100644
--- a/provider_base/files/service-definitions/provider.json.erb
+++ b/provider_base/files/service-definitions/provider.json.erb
@@ -1,13 +1,13 @@
<%=
# grab some fields from provider.json
hsh = provider.pick(
- :languages, :description, :name,
+ :languages, :description, :name, :services,
:enrollment_policy, :default_language, :service
)
hsh['domain'] = domain.full_suffix
# advertise services that are 'user services' and for which there are actually nodes
- hsh['services'] = global.services[:service_type => :user_service].field(:name).select do |service|
+ hsh['services'] ||= global.services[:service_type => :user_service].field(:name).select do |service|
nodes_like_me[:services => service].any?
end