Puppet Function: oracle_exists

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

Overview

oracle_exists(String $oracle_home)Boolean

Parameters:

  • oracle_home (String)

Returns:

  • (Boolean)


7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/puppet/functions/oracle_exists.rb', line 7

Puppet::Functions.create_function(:'oracle_exists') do
  dispatch :oracle_exists do
    param 'String', :oracle_home
    return_type 'Boolean'
  end

  def oracle_exists(oracle_home)
    Puppet.warn_once('deprecations', 'oracle_exists',"Function 'oracle_exists' is deprecated. Please use 'ora_install::oracle_exists'.")
    call_function('ora_install::oracle_exists', oracle_home)
  end

end