diff options
Diffstat (limited to 'lib/puppet/provider/whole_line')
-rw-r--r-- | lib/puppet/provider/whole_line/ruby.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/puppet/provider/whole_line/ruby.rb b/lib/puppet/provider/whole_line/ruby.rb deleted file mode 100644 index 156f255..0000000 --- a/lib/puppet/provider/whole_line/ruby.rb +++ /dev/null @@ -1,15 +0,0 @@ -Puppet::Type.type(:whole_line).provide(:ruby) do - - def exists? - File.readlines(resource[:path]).find do |line| - line.chomp == resource[:line].chomp - end - end - - def create - File.open(resource[:path], 'a') do |fh| - fh.puts resource[:line] - end - end - -end |