opscode/chef — pull request #185 by juanje (2011-11-20 19:01:25+00:00)
Title: [CHEF-2740] Add new public method to file_edit.rb to append a line if th...

...e regex doesn't match

This is a proposed change to the [CHEF-2740](http://tickets.opscode.com/browse/CHEF-2740) ticket:

There is a method now for replace a line and insert line after a regex matched, but there is not a method to add the line in case the regex doesn't exists.

I think it could be handy for those cases where you need a line to be there, so if your recipe doesn't find the line (or expresion) in the file, you can add it to be sure the line will be there.