summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authornfagerlund <nick.fagerlund@gmail.com>2011-02-28 10:21:03 -0800
committernfagerlund <nick.fagerlund@gmail.com>2011-02-28 10:21:03 -0800
commit27863c3ab6d54bfa5d647770f35ef7ce10e1ac20 (patch)
tree6e952a54ae8d84ce2c5ae856180c30768614caea /lib/puppet
parentf4034f76892b25b4a2e162f9229f2871c0a9d37c (diff)
downloadpuppet-27863c3ab6d54bfa5d647770f35ef7ce10e1ac20.tar.gz
puppet-27863c3ab6d54bfa5d647770f35ef7ce10e1ac20.tar.xz
puppet-27863c3ab6d54bfa5d647770f35ef7ce10e1ac20.zip
(#6509) Inline docs: Fix code blocks in service type.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/service/daemontools.rb12
-rw-r--r--lib/puppet/provider/service/runit.rb8
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/puppet/provider/service/daemontools.rb b/lib/puppet/provider/service/daemontools.rb
index 65abf7728..bbb962a71 100644
--- a/lib/puppet/provider/service/daemontools.rb
+++ b/lib/puppet/provider/service/daemontools.rb
@@ -19,10 +19,10 @@ Puppet::Type.type(:service).provide :daemontools, :parent => :base do
or this can be overriden in the service resource parameters::
- service {
- \"myservice\":
- provider => \"daemontools\", path => \"/path/to/daemons\";
- }
+ service { \"myservice\":
+ provider => \"daemontools\",
+ path => \"/path/to/daemons\",
+ }
This provider supports out of the box:
@@ -31,10 +31,10 @@ Puppet::Type.type(:service).provide :daemontools, :parent => :base do
* restart
* status
- If a service has ensure => \"running\", it will link /path/to/daemon to
+ If a service has `ensure => \"running\"`, it will link /path/to/daemon to
/path/to/service, which will automatically enable the service.
- If a service has ensure => \"stopped\", it will only down the service, not
+ If a service has `ensure => \"stopped\"`, it will only down the service, not
remove the /path/to/service link.
"
diff --git a/lib/puppet/provider/service/runit.rb b/lib/puppet/provider/service/runit.rb
index 0315b9597..736e3db71 100644
--- a/lib/puppet/provider/service/runit.rb
+++ b/lib/puppet/provider/service/runit.rb
@@ -18,10 +18,10 @@ Puppet::Type.type(:service).provide :runit, :parent => :daemontools do
or this can be overriden in the service resource parameters::
- service {
- \"myservice\":
- provider => \"runit\", path => \"/path/to/daemons\";
- }
+ service { \"myservice\":
+ provider => \"runit\",
+ path => \"/path/to/daemons\",
+ }
This provider supports out of the box: