Mercurial > repos > other > Puppet
comparison modules/stdlib/lib/puppet/parser/functions/is_ip_address.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 # | 1 # |
2 # is_ip_address.rb | 2 # is_ip_address.rb |
3 # | 3 # |
4 module Puppet::Parser::Functions | 4 module Puppet::Parser::Functions |
5 newfunction(:is_ip_address, :type => :rvalue, :doc => <<-DOC | 5 newfunction(:is_ip_address, :type => :rvalue, :doc => <<-DOC |
6 Returns true if the string passed to this function is a valid IP address. | 6 @summary |
7 **Deprecated:** Returns true if the string passed to this function is a valid IP address. | |
8 | |
9 @return [Boolean] | |
10 Returns `true` or `false` | |
11 | |
12 > **Note:* **Deprecated** Will be removed in a future version of stdlib. See | |
13 [`validate_legacy`](#validate_legacy). | |
7 DOC | 14 DOC |
8 ) do |arguments| | 15 ) do |arguments| |
9 | 16 |
10 require 'ipaddr' | 17 require 'ipaddr' |
11 | 18 |