diff options
author | nfagerlund <nick.fagerlund@gmail.com> | 2011-02-28 09:58:58 -0800 |
---|---|---|
committer | nfagerlund <nick.fagerlund@gmail.com> | 2011-02-28 09:58:58 -0800 |
commit | f4034f76892b25b4a2e162f9229f2871c0a9d37c (patch) | |
tree | 8d4ec42a442ed823a3dbf7e54b98a2db7a3a2bbc | |
parent | 6f6c4b5f55d00df370f7d00a2499551e36aa880b (diff) | |
download | puppet-f4034f76892b25b4a2e162f9229f2871c0a9d37c.tar.gz puppet-f4034f76892b25b4a2e162f9229f2871c0a9d37c.tar.xz puppet-f4034f76892b25b4a2e162f9229f2871c0a9d37c.zip |
(#6509) Inline docs: fix broken code blocks in schedule.rb.
-rwxr-xr-x | lib/puppet/type/schedule.rb | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/puppet/type/schedule.rb b/lib/puppet/type/schedule.rb index 82f17e533..5fb008f6f 100755 --- a/lib/puppet/type/schedule.rb +++ b/lib/puppet/type/schedule.rb @@ -18,11 +18,11 @@ module Puppet wanted to restrict certain resources to only running once, between the hours of two and 4 AM, then you would use this schedule: - schedule { maint: - range => \"2 - 4\", - period => daily, - repeat => 1 - } + schedule { maint: + range => \"2 - 4\", + period => daily, + repeat => 1 + } With this schedule, the first time that Puppet runs between 2 and 4 AM, all resources with this schedule will get applied, but they won't @@ -35,10 +35,10 @@ module Puppet a schedule named *puppet* is created and used as the default, with the following attributes: - schedule { puppet: - period => hourly, - repeat => 2 - } + schedule { puppet: + period => hourly, + repeat => 2 + } This will cause resources to be applied every 30 minutes by default. " @@ -47,14 +47,14 @@ module Puppet desc "The name of the schedule. This name is used to retrieve the schedule when assigning it to an object: - schedule { daily: - period => daily, - range => \"2 - 4\", - } - - exec { \"/usr/bin/apt-get update\": - schedule => daily - } + schedule { daily: + period => daily, + range => \"2 - 4\", + } + + exec { \"/usr/bin/apt-get update\": + schedule => daily + } " isnamevar @@ -67,9 +67,9 @@ module Puppet seconds can be provided, using the normal colon as a separator. For instance: - schedule { maintenance: - range => \"1:30 - 4:30\" - } + schedule { maintenance: + range => \"1:30 - 4:30\" + } This is mostly useful for restricting certain resources to being applied in maintenance windows or during off-peak hours." |