]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/edit_file.rb
Make deferring of edit_file work properly
[chef.git] / cookbooks / chef / libraries / edit_file.rb
index 400e1967e0c96718f84733728d6c8d621f25963a..8a04a8090f3e45ce03a13e71bbba768d9b945376 100644 (file)
@@ -6,6 +6,10 @@ class Chef
         @block = block
       end
 
+      def kind_of?(klass)
+        klass == String || super
+      end
+
       def to_s
         ::File.new(@file).collect do |line|
           line = @block.call(line)