]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/content_from_file.rb
Replace content_from_file extension with simpler edit_file technique
[chef.git] / cookbooks / chef / libraries / content_from_file.rb
diff --git a/cookbooks/chef/libraries/content_from_file.rb b/cookbooks/chef/libraries/content_from_file.rb
deleted file mode 100644 (file)
index d8d0fe7..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-class Chef
-  class Resource
-    class File
-      def content_from_file(file, &block)
-        @content_file = file
-        @content_block = block
-      end
-
-      def content(text = nil)
-        if text
-          @content = text
-        elsif @content
-          @content
-        elsif @content_file
-          ::File.new(@content_file).collect do |line|
-            line = @content_block.call(line)
-          end.join("")
-        end
-      end
-    end
-  end
-end