chef-patch
chef-patch copied to clipboard
Can you look at new resource, replace_line_or_add
Can you look at new resource, replace_line_or_add
The reason for this resource is that with the append_line you cannot use regex. The resource replace_line_or_add you can use regex features and if no regex is matched it will append your replacement string to the file.
Just like append resource it will not insert a line every time but only if no match is found