Mercurial > repos > other > Puppet
comparison modules/stdlib/lib/puppet/functions/validate_array.rb @ 275:d9352a684e62
Mass update of modules to remove deprecation warnings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Jan 2020 11:36:07 +0000 |
parents | c42fb28cff86 |
children |
comparison
equal
deleted
inserted
replaced
274:b2571c28fc27 | 275:d9352a684e62 |
---|---|
1 # @summary | |
2 # Validate the passed value represents an array. | |
1 Puppet::Functions.create_function(:validate_array) do | 3 Puppet::Functions.create_function(:validate_array) do |
4 # @param scope | |
5 # The main value that will be passed to the method | |
6 # | |
7 # @param args | |
8 # Any additional values that are to be passed to the method | |
9 # | |
10 # @return | |
11 # A boolean value (`true` or `false`) returned from the called function. | |
2 dispatch :deprecation_gen do | 12 dispatch :deprecation_gen do |
3 param 'Any', :scope | 13 param 'Any', :scope |
4 repeated_param 'Any', :args | 14 repeated_param 'Any', :args |
5 end | 15 end |
6 # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff | 16 # Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff |