Browse Source

Removed libraries/file.rb which is not used any more.

Moved the implementation to the provider conf/providers/plain_file.rb
Juanje Ojeda 8 years ago
parent
commit
2ad2148279
1 changed files with 0 additions and 25 deletions
  1. 0 25
      libraries/file.rb

+ 0 - 25
libraries/file.rb

@@ -1,25 +0,0 @@
-class Chef
-  class Resource
-    class File
-      def include?(str)
-        return false unless ::File.exists?(@path)
-
-        file_content = IO.read @path
-        if file_content =~ /#{str}/
-          Chef::Log.info("file[#{@path}] contains the string '#{str}'")
-          true
-        else
-          Chef::Log.info("file[#{@path}] doesn't contains the string '#{str}'")
-          false
-        end
-      end
-
-      def replace(str, str2)
-        Chef::Log.info("replacing '#{str}' with '#{str2}' at #{@path}")
-        old_content = IO.read @path
-        content old_content.gsub(str, str2)
-      end
-    end
-  end
-end
-