summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/validate_numeric.rb
diff options
context:
space:
mode:
authorJohnson Earls <johnson.earls@oracle.com>2015-08-06 13:00:11 -0700
committerJohnson Earls <johnson.earls@oracle.com>2015-08-06 13:44:32 -0700
commit9bacf14ca24283a94883523064603babcd7046d3 (patch)
treeb8343ca7af2e569efea2a77b4c53bb92a1a8fe47 /lib/puppet/parser/functions/validate_numeric.rb
parent061d0c29fc54391f3e713e9ed76da3933b19083b (diff)
allow `match` parameter to influence `ensure => absent` behavior.
Split the `destroy` method of the file_type::ruby provider into two private methods: `handle_destroy_line` which is the same as the previous `destroy` method, and `handle_destroy_with_match` which will destroy any line which matches the `match` parameter, raising an error if multiple lines match and the `multiple` parameter is not `true`. This new behavior is only used if the new boolean parameter `match_for_absence` is `true` (it defaults to `false`).
Diffstat (limited to 'lib/puppet/parser/functions/validate_numeric.rb')
0 files changed, 0 insertions, 0 deletions