Mercurial > repos > other > Puppet
diff modules/apache/lib/puppet/functions/bool2httpd.rb @ 437:b8d6ada284dd
Update Apache module to latest version
Also converted some params to ints to match
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 14 Aug 2022 11:30:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/apache/lib/puppet/functions/bool2httpd.rb Sun Aug 14 11:30:13 2022 +0100 @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +# @summary DEPRECATED. Use the namespaced function [`apache::bool2httpd`](#apachebool2httpd) instead. +Puppet::Functions.create_function(:bool2httpd) do + dispatch :deprecation_gen do + repeated_param 'Any', :args + end + def deprecation_gen(*args) + call_function('deprecation', 'bool2httpd', 'This function is deprecated, please use apache::bool2httpd instead.') + call_function('apache::bool2httpd', *args) + end +end