summaryrefslogtreecommitdiff
path: root/lib/chef/resource/cron
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-02-15 13:01:38 -0800
committerTim Smith <tsmith84@gmail.com>2021-02-15 13:01:38 -0800
commitb3057cc7f55fadd57e54dba45242f692806bc2ba (patch)
tree2d4a8511bb6ecb8813e89a9d85c2986673d005a2 /lib/chef/resource/cron
parent7eb9179ed6eaf024f62546001544ea2caa3d184c (diff)
downloadchef-b3057cc7f55fadd57e54dba45242f692806bc2ba.tar.gz
Improve automatic docs generationdocs
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/cron')
-rw-r--r--lib/chef/resource/cron/_cron_shared.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/cron/_cron_shared.rb b/lib/chef/resource/cron/_cron_shared.rb
index 6d11035862..3dba74e77f 100644
--- a/lib/chef/resource/cron/_cron_shared.rb
+++ b/lib/chef/resource/cron/_cron_shared.rb
@@ -61,7 +61,7 @@ property :user, String,
property :environment, Hash,
description: "A Hash containing additional arbitrary environment variables under which the cron job will be run in the form of `({'ENV_VARIABLE' => 'VALUE'})`. **Note**: These variables must exist for a command to be run successfully.",
- default: lazy { {} }
+ default: {}
property :time_out, Hash,
description: "A Hash of timeouts in the form of `({'OPTION' => 'VALUE'})`. Accepted valid options are:
@@ -69,7 +69,7 @@ property :time_out, Hash,
- `foreground` (BOOL, default: 'false'),
- `kill-after` (in seconds),
- `signal` (a name like 'HUP' or a number)",
- default: lazy { {} },
+ default: {},
introduced: "15.7",
coerce: proc { |h|
if h.is_a?(Hash)