| 1 |
# frozen_string_literal: true |
| 2 |
|
| 3 |
# @summary DEPRECATED. Use the namespaced function [`postgresql::postgresql_escape`](#postgresqlpostgresql_escape) instead. |
| 4 |
Puppet::Functions.create_function(:postgresql_escape) do |
| 5 |
dispatch :deprecation_gen do |
| 6 |
repeated_param 'Any', :args |
| 7 |
end |
| 8 |
def deprecation_gen(*args) |
| 9 |
call_function('deprecation', 'postgresql_escape', 'This method is deprecated, please use postgresql::postgresql_escape instead.') |
| 10 |
call_function('postgresql::postgresql_escape', *args) |
| 11 |
end |
| 12 |
end |