summaryrefslogtreecommitdiff
path: root/lib/chef/resource/cron.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-01 11:09:27 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-01 11:09:27 -0700
commitba47fec47fc34c718713fbcebea55fd44e4eaba7 (patch)
tree4088a54c525cc7ff451a5ed87a93bfb5124b4a2c /lib/chef/resource/cron.rb
parent8ca564d1f518bb57ceaf0c470c07de15e89fc78b (diff)
downloadchef-ba47fec47fc34c718713fbcebea55fd44e4eaba7.tar.gz
Fix more resource formatting
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/cron.rb')
-rw-r--r--lib/chef/resource/cron.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/cron.rb b/lib/chef/resource/cron.rb
index 6caeaf7d97..baabe4d5d9 100644
--- a/lib/chef/resource/cron.rb
+++ b/lib/chef/resource/cron.rb
@@ -41,25 +41,25 @@ class Chef
end
property :minute, [Integer, String],
- description: "The minute at which the cron entry should run (0 - 59).",
+ description: "The minute at which the cron entry should run (`0 - 59`).",
default: "*", callbacks: {
"should be a valid minute spec" => ->(spec) { Chef::ResourceHelpers::CronValidations.validate_numeric(spec, 0, 59) },
}
property :hour, [Integer, String],
- description: "The hour at which the cron entry is to run (0 - 23).",
+ description: "The hour at which the cron entry is to run (`0 - 23`).",
default: "*", callbacks: {
"should be a valid hour spec" => ->(spec) { Chef::ResourceHelpers::CronValidations.validate_numeric(spec, 0, 23) },
}
property :day, [Integer, String],
- description: "The day of month at which the cron entry should run (1 - 31).",
+ description: "The day of month at which the cron entry should run (`1 - 31`).",
default: "*", callbacks: {
"should be a valid day spec" => ->(spec) { Chef::ResourceHelpers::CronValidations.validate_numeric(spec, 1, 31) },
}
property :month, [Integer, String],
- description: "The month in the year on which a cron entry is to run (1 - 12, jan-dec, or *).",
+ description: "The month in the year on which a cron entry is to run (`1 - 12`, `jan-dec`, or `*`).",
default: "*", callbacks: {
"should be a valid month spec" => ->(spec) { Chef::ResourceHelpers::CronValidations.validate_month(spec) },
}