summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornfagerlund <nick.fagerlund@gmail.com>2011-02-28 09:55:19 -0800
committernfagerlund <nick.fagerlund@gmail.com>2011-02-28 09:55:19 -0800
commit6f6c4b5f55d00df370f7d00a2499551e36aa880b (patch)
treed11333320aed5e618b13b008ce32d3c780d7055d
parentfb02430e3d3baaab74175236fb6dfc9e931b6a8e (diff)
downloadpuppet-6f6c4b5f55d00df370f7d00a2499551e36aa880b.tar.gz
puppet-6f6c4b5f55d00df370f7d00a2499551e36aa880b.tar.xz
puppet-6f6c4b5f55d00df370f7d00a2499551e36aa880b.zip
(#6509) Inline docs: Fix broken code block in file type (content attribute)
-rwxr-xr-xlib/puppet/type/file/content.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/puppet/type/file/content.rb b/lib/puppet/type/file/content.rb
index 63c0aaf4d..0e31f3099 100755
--- a/lib/puppet/type/file/content.rb
+++ b/lib/puppet/type/file/content.rb
@@ -17,19 +17,19 @@ module Puppet
desc "Specify the contents of a file as a string. Newlines, tabs, and
spaces can be specified using the escaped syntax (e.g., \\n for a newline). The primary purpose of this parameter is to provide a
- kind of limited templating::
-
- define resolve(nameserver1, nameserver2, domain, search) {
- $str = \"search $search
- domain $domain
- nameserver $nameserver1
- nameserver $nameserver2
- \"
-
- file { \"/etc/resolv.conf\":
- content => $str
+ kind of limited templating:
+
+ define resolve(nameserver1, nameserver2, domain, search) {
+ $str = \"search $search
+ domain $domain
+ nameserver $nameserver1
+ nameserver $nameserver2
+ \"
+
+ file { \"/etc/resolv.conf\":
+ content => $str
+ }
}
- }
This attribute is especially useful when used with templating."