chef-patch icon indicating copy to clipboard operation
chef-patch copied to clipboard

Can you look at new resource, replace_line_or_add

Open Doubleth1nk opened this issue 8 years ago • 0 comments

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

Doubleth1nk avatar Feb 22 '17 14:02 Doubleth1nk