puppetlabs / puppetlabs-stdlib

Puppet Labs Standard Library module
http://forge.puppetlabs.com/puppetlabs/stdlib
Apache License 2.0
348 stars 580 forks source link

Add stdlib::has_function #1386

Closed seanmil closed 1 year ago

seanmil commented 1 year ago

Summary

Add new stdlib::has_function function to test for function availability.

Additional Context

The old is_function_available function was deprecated for quite some time and removed. It did not support testing for availability of modern functions, only 3.x style. This new function fully supports the various types of functions and restores the ability to test if certain functions are available.

Checklist