summaryrefslogtreecommitdiff
path: root/provider_base/files
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-08-07 18:08:14 -0700
committerelijah <elijah@riseup.net>2015-08-07 18:08:14 -0700
commite6f6324ebea9fc46d5d617a08c2eb239349d9f90 (patch)
tree76334f2889abd9348cd38aa8600dfc6115e30b4d /provider_base/files
parentfc082470fa945dd5a394057cbea8ea55831b9fad (diff)
move 'enabled service' calculation to a macro.
Diffstat (limited to 'provider_base/files')
-rw-r--r--provider_base/files/service-definitions/provider.json.erb5
1 files changed, 0 insertions, 5 deletions
diff --git a/provider_base/files/service-definitions/provider.json.erb b/provider_base/files/service-definitions/provider.json.erb
index be8ae484..e51f9c3a 100644
--- a/provider_base/files/service-definitions/provider.json.erb
+++ b/provider_base/files/service-definitions/provider.json.erb
@@ -6,11 +6,6 @@
)
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|
- nodes_like_me[:services => service].any?
- end
-
hsh['api_version'] = "1"
hsh['api_uri'] = ["https://", api.domain, ':', api.port].join