summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/file_line/ruby.rb (renamed from lib/puppet/provider/whole_line/ruby.rb)2
-rw-r--r--lib/puppet/type/file_line.rb (renamed from lib/puppet/type/whole_line.rb)4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/provider/whole_line/ruby.rb b/lib/puppet/provider/file_line/ruby.rb
index 156f255..63bbd8e 100644
--- a/lib/puppet/provider/whole_line/ruby.rb
+++ b/lib/puppet/provider/file_line/ruby.rb
@@ -1,4 +1,4 @@
-Puppet::Type.type(:whole_line).provide(:ruby) do
+Puppet::Type.type(:file_line).provide(:ruby) do
def exists?
File.readlines(resource[:path]).find do |line|
diff --git a/lib/puppet/type/whole_line.rb b/lib/puppet/type/file_line.rb
index f231602..aacd6d9 100644
--- a/lib/puppet/type/whole_line.rb
+++ b/lib/puppet/type/file_line.rb
@@ -1,11 +1,11 @@
-Puppet::Type.newtype(:whole_line) do
+Puppet::Type.newtype(:file_line) do
desc <<-EOT
Type that can append whole a line to a file if it does not already contain it.
Example:
- whole_line { 'sudo_rule':
+ file_line { 'sudo_rule':
path => '/etc/sudoers',
line => '%admin ALL=(ALL) ALL',
}