Method: Chef::Util::FileEdit#search_file_delete_line
- Defined in:
- lib/chef/util/file_edit.rb
#search_file_delete_line(regex) ⇒ Object
search the file line by line and match each line with the given regex if matched, delete the line
58 59 60 |
# File 'lib/chef/util/file_edit.rb', line 58 def search_file_delete_line(regex) @changes = (editor.remove_lines(regex) > 0) || @changes end |