X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/6728ed67e4d7dfb29fe546edc21d629fc4ac348c..b17dd01854b7d2dd4caa29ff4e05c03f3ff69890:/cookbooks/tools/libraries/content_from_file.rb diff --git a/cookbooks/tools/libraries/content_from_file.rb b/cookbooks/tools/libraries/content_from_file.rb deleted file mode 100644 index d8d0fe7ee..000000000 --- a/cookbooks/tools/libraries/content_from_file.rb +++ /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