summaryrefslogtreecommitdiff
path: root/provider_base/lib/macros/provider.rb
diff options
context:
space:
mode:
Diffstat (limited to 'provider_base/lib/macros/provider.rb')
-rw-r--r--provider_base/lib/macros/provider.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/provider_base/lib/macros/provider.rb b/provider_base/lib/macros/provider.rb
deleted file mode 100644
index 84c4e1b8..00000000
--- a/provider_base/lib/macros/provider.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# These macros are intended only for use in provider.json, although they are
-# currently loaded in all .json contexts.
-#
-
-module LeapCli
- module Macro
-
- #
- # returns an array of the service names, including only those services that
- # are enabled for this environment.
- #
- def enabled_services
- manager.env(self.environment).services[:service_type => :user_service].field(:name).select { |service|
- manager.nodes[:environment => self.environment][:services => service].any?
- }
- end
-
- end
-end