diff options
author | Johnson Earls <johnson.earls@oracle.com> | 2015-08-06 13:00:11 -0700 |
---|---|---|
committer | Johnson Earls <johnson.earls@oracle.com> | 2015-08-06 13:44:32 -0700 |
commit | 9bacf14ca24283a94883523064603babcd7046d3 (patch) | |
tree | b8343ca7af2e569efea2a77b4c53bb92a1a8fe47 /spec/acceptance/deep_merge_spec.rb | |
parent | 061d0c29fc54391f3e713e9ed76da3933b19083b (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 'spec/acceptance/deep_merge_spec.rb')
0 files changed, 0 insertions, 0 deletions