]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/edit_file.rb
Modernise some older systemd services
[chef.git] / cookbooks / chef / libraries / edit_file.rb
index 6260c8a40c182f937e592ca882d91c32035b1e5a..bfbec455cebc82d00acc90725b70b627c9e3f36a 100644 (file)
@@ -1,10 +1,10 @@
 class Chef
   module Mixin
     module EditFile
-      def edit_file(file, &block)
+      def edit_file(file, &_block)
         Chef::DelayedEvaluator.new do
           ::File.new(file).collect do |line|
-            block.call(line)
+            yield line
           end.join("")
         end
       end