]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#8628) Add append_line native type
authorDan Bode <dan@puppetlabs.com>
Tue, 26 Jul 2011 22:27:42 +0000 (15:27 -0700)
committerDan Bode <dan@puppetlabs.com>
Tue, 26 Jul 2011 22:30:28 +0000 (15:30 -0700)
commite82370a26d15181b6c3b17b25c2349752e41ed38
tree42d12c5726f9a59a95cb77b40aec4cc8c9b84e6b
parenta6ed9fbca3f256304df17b1cfae157728d60bb1d
(#8628) Add append_line native type

This commit adds a native type that can check if
a line exists and append it to a file.

This use case seems common enough to warrant its
inclusion into stdlib.

Reviewed-by: Jeff McCune
lib/puppet/provider/append_line/ruby.rb [new file with mode: 0644]
lib/puppet/type/append_line.rb [new file with mode: 0644]
spec/unit/puppet/provider/append_line/ruby_spec.rb [new file with mode: 0644]
spec/unit/puppet/type/append_line_spec.rb [new file with mode: 0644]
tests/append_line.pp [new file with mode: 0644]