Puppet Function: wls_install::running_domains

Defined in:
lib/puppet/functions/wls_install/running_domains.rb
Function type:
Ruby 4.x API

Overview

wls_install::running_domains(String[1] $home)Array

This function will return the domains currently running from a specific home.

See the file “LICENSE” for the full license governing this code.

Parameters:

  • home (String[1])

Returns:

  • (Array)


10
11
12
13
14
15
16
17
18
19
20
# File 'lib/puppet/functions/wls_install/running_domains.rb', line 10

Puppet::Functions.create_function(:'wls_install::running_domains') do
  dispatch :running_domains do
    param 'String[1]', :home
    return_type 'Array'
  end

  def running_domains(home)
    fact = closure_scope['wls_install_homes']
    fact.dig('running_domains', home) || []
  end
end