blob: 84c4e1b8585d5fec673e296a8378071e915efd5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#
# 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
|