summaryrefslogtreecommitdiff
path: root/lib/puppet/type
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2014-05-15 13:31:23 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2014-05-15 13:31:23 -0400
commit8499ebdb7f892f2623295058649c67a5553d4732 (patch)
tree436a27d393345adb11b3d13a349257648b6f0813 /lib/puppet/type
parent08b00d9229961d7b3c3cba997bfb35c8d47e4c4b (diff)
parent6eaa592cd8d5af097a4624b3d1cead74408aabf2 (diff)
downloadpuppet-stdlib-8499ebdb7f892f2623295058649c67a5553d4732.tar.gz
puppet-stdlib-8499ebdb7f892f2623295058649c67a5553d4732.tar.bz2
Merge pull request #256 from stbenjam/2571-before
(PUP-2571) add 'before' functionality to file_line
Diffstat (limited to 'lib/puppet/type')
-rw-r--r--lib/puppet/type/file_line.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/type/file_line.rb b/lib/puppet/type/file_line.rb
index 323fc4c..bc6745f 100644
--- a/lib/puppet/type/file_line.rb
+++ b/lib/puppet/type/file_line.rb
@@ -46,6 +46,10 @@ Puppet::Type.newtype(:file_line) do
desc 'An optional value used to specify the line after which we will add any new lines. (Existing lines are added in place)'
end
+ newparam(:before) do
+ desc 'An optional value used to specify the line before which we will add any new lines. (Existing lines are added in place)'
+ end
+
newparam(:line) do
desc 'The line to be appended to the file located by the path parameter.'
end