Class | Chef::Util::FileEdit |
In: |
lib/chef/util/file_edit.rb
|
Parent: | Object |
contents | [RW] | |
file_edited | [RW] | |
original_pathname | [RW] |
search the file line by line and match each line with the given regex if matched, insert newline after each matching line
search the file line by line and match each line with the given regex if matched, delete the match (all occurances) from the line
search the file line by line and match each line with the given regex if matched, replace the match (all occurances) with the replace parameter