annotate modules/apache/lib/puppet/functions/bool2httpd.rb @ 478:adf6fe9bbc17

Update Puppet modules to latest versions
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Aug 2024 18:47:29 +0100
parents b8d6ada284dd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
437
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 # frozen_string_literal: true
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 # @summary DEPRECATED. Use the namespaced function [`apache::bool2httpd`](#apachebool2httpd) instead.
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 Puppet::Functions.create_function(:bool2httpd) do
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 dispatch :deprecation_gen do
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 repeated_param 'Any', :args
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 end
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 def deprecation_gen(*args)
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 call_function('deprecation', 'bool2httpd', 'This function is deprecated, please use apache::bool2httpd instead.')
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 call_function('apache::bool2httpd', *args)
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 end
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 end