summaryrefslogtreecommitdiff
path: root/lib/chef/resource/chef_client_cron.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/chef_client_cron.rb')
-rw-r--r--lib/chef/resource/chef_client_cron.rb34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/chef/resource/chef_client_cron.rb b/lib/chef/resource/chef_client_cron.rb
index 726fd58795..4dccd8cf10 100644
--- a/lib/chef/resource/chef_client_cron.rb
+++ b/lib/chef/resource/chef_client_cron.rb
@@ -29,28 +29,28 @@ class Chef
description "Use the **chef_client_cron** resource to setup the #{ChefUtils::Dist::Infra::PRODUCT} to run as a cron job. This resource will also create the specified log directory if it doesn't already exist."
introduced "16.0"
examples <<~DOC
- **Setup #{ChefUtils::Dist::Infra::PRODUCT} to run using the default 30 minute cadence**:
+ **Setup #{ChefUtils::Dist::Infra::PRODUCT} to run using the default 30 minute cadence**:
- ```ruby
- chef_client_cron 'Run #{ChefUtils::Dist::Infra::PRODUCT} as a cron job'
- ```
+ ```ruby
+ chef_client_cron 'Run #{ChefUtils::Dist::Infra::PRODUCT} as a cron job'
+ ```
- **Run #{ChefUtils::Dist::Infra::PRODUCT} twice a day**:
+ **Run #{ChefUtils::Dist::Infra::PRODUCT} twice a day**:
- ```ruby
- chef_client_cron 'Run #{ChefUtils::Dist::Infra::PRODUCT} every 12 hours' do
- minute 0
- hour '0,12'
- end
- ```
+ ```ruby
+ chef_client_cron 'Run #{ChefUtils::Dist::Infra::PRODUCT} every 12 hours' do
+ minute 0
+ hour '0,12'
+ end
+ ```
- **Run #{ChefUtils::Dist::Infra::PRODUCT} with extra options passed to the client**:
+ **Run #{ChefUtils::Dist::Infra::PRODUCT} with extra options passed to the client**:
- ```ruby
- chef_client_cron 'Run an override recipe' do
- daemon_options ['--override-runlist mycorp_base::default']
- end
- ```
+ ```ruby
+ chef_client_cron 'Run an override recipe' do
+ daemon_options ['--override-runlist mycorp_base::default']
+ end
+ ```
DOC
extend Chef::ResourceHelpers::CronValidations