diff options
author | Dan Bode <dan@puppetlabs.com> | 2011-07-27 15:28:44 -0700 |
---|---|---|
committer | Dan Bode <dan@puppetlabs.com> | 2011-07-27 15:28:44 -0700 |
commit | 4540949d96608c6ff7eed07d53294337446fbead (patch) | |
tree | d56d4f7d2723f2b83fed621fbc097aa5a552ed33 /lib/puppet/provider/append_line/ruby.rb | |
parent | 9560b6336cc983b65aaff909f4fb2e983dfd7012 (diff) |
(#8665) Change type from append_line to whole_line
Changed the type name from append_line to
whole_line.
After feedback that having a type with a verb in
the name was confusing.
Diffstat (limited to 'lib/puppet/provider/append_line/ruby.rb')
-rw-r--r-- | lib/puppet/provider/append_line/ruby.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/puppet/provider/append_line/ruby.rb b/lib/puppet/provider/append_line/ruby.rb deleted file mode 100644 index 5e78659..0000000 --- a/lib/puppet/provider/append_line/ruby.rb +++ /dev/null @@ -1,15 +0,0 @@ -Puppet::Type.type(:append_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 |