Mercurial > repos > other > Puppet
annotate modules/apache/lib/puppet/functions/apache_pw_hash.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 |
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::pw_hash`](#apachepw_hash) instead. |
b8d6ada284dd
Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 Puppet::Functions.create_function(:apache_pw_hash) 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', 'apache_pw_hash', 'This function is deprecated, please use apache::pw_hash instead.') |
b8d6ada284dd
Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 call_function('apache::pw_hash', *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 |