summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-01-16 16:48:35 -0800
committerTim Smith <tsmith84@gmail.com>2020-01-16 16:51:28 -0800
commit01526978908b095b49f259522835dc8641e66331 (patch)
treeeb791d724ccd8f62b29484a9e0cc43399ea2de03
parent1aa94b068f892cd8733f82fd48dde58473364675 (diff)
downloadchef-01526978908b095b49f259522835dc8641e66331.tar.gz
Add introduced fields to cron and cron_d
Now that we've merged these new properties we can make sure we have the fields to properly documen them. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/cron.rb1
-rw-r--r--lib/chef/resource/cron_d.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/resource/cron.rb b/lib/chef/resource/cron.rb
index cb3f7f4dcd..6f85d68e5d 100644
--- a/lib/chef/resource/cron.rb
+++ b/lib/chef/resource/cron.rb
@@ -173,6 +173,7 @@ class Chef
kill-after (in seconds),
signal (a name like 'HUP' or a number)",
default: lazy { {} },
+ introduced: "15.7",
coerce: proc { |h|
if h.is_a?(Hash)
invalid_keys = h.keys - TIMEOUT_OPTS
diff --git a/lib/chef/resource/cron_d.rb b/lib/chef/resource/cron_d.rb
index 6cc2ea77b3..281fad9dae 100644
--- a/lib/chef/resource/cron_d.rb
+++ b/lib/chef/resource/cron_d.rb
@@ -217,6 +217,7 @@ class Chef
kill-after (in seconds),
signal (a name like 'HUP' or a number)",
default: lazy { {} },
+ introduced: "15.7",
coerce: proc { |h|
if h.is_a?(Hash)
invalid_keys = h.keys - TIMEOUT_OPTS