]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/edit_file.rb
Make edit_file work again
[chef.git] / cookbooks / chef / libraries / edit_file.rb
index 9048da84e6c54305e1bc461af45ff46844a3a153..e632bcfd49dbd93f8dafd1caf4c09276b90aa01d 100644 (file)
@@ -1,6 +1,6 @@
 class Chef
   class Util
 class Chef
   class Util
-    class EditedFile < String
+    class EditedFile
       def initialize(file, block)
         @file = file
         @block = block
       def initialize(file, block)
         @file = file
         @block = block
@@ -16,7 +16,7 @@ class Chef
 
   class Recipe
     def edit_file(file, &block)
 
   class Recipe
     def edit_file(file, &block)
-      Chef::Util::EditedFile.new(file, block)
+      Chef::Util::EditedFile.new(file, block).to_s
     end
   end
 end
     end
   end
 end