projects
/
chef.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rely on Last-Modified and/or ETag to control chef client downloads
[chef.git]
/
cookbooks
/
chef
/
libraries
/
edit_file.rb
1
class Chef
2
class Recipe
3
def edit_file(file, &block)
4
Chef::DelayedEvaluator.new do
5
::File.new(file).collect do |line|
6
line = block.call(line)
7
end.join("")
8
end
9
end
10
end
11
end