]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Update file_line resource to support 'after'.
authorDan Prince <dprince@redhat.com>
Thu, 29 Aug 2013 16:19:16 +0000 (12:19 -0400)
committerJeff McCune <jeff@puppetlabs.com>
Thu, 29 Aug 2013 22:07:29 +0000 (15:07 -0700)
commit221277e8522b42bf170fded6ea23dfc526703b07
tree51abab0793eb3ef67431889330c2e7b28383f1d1
parent806430224ad0da860be3761ab83f1e574b64fc60
Update file_line resource to support 'after'.

When adding new lines to a file the 'after' option can be useful
when you need to insert file lines into the middle of a file.

This is particularly helpful when using file_line with sectioned
config files.

NOTE: the after option only works when adding new lines. If you are
updating an existing (matched) line it will simply modify it in place.
This assumes it was in the right place to begin with.
lib/puppet/provider/file_line/ruby.rb
lib/puppet/type/file_line.rb
spec/unit/puppet/provider/file_line/ruby_spec.rb