diff options
author | Tim Smith <tsmith@chef.io> | 2018-11-14 19:55:29 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-11-15 09:40:35 -0800 |
commit | 72f051cd4b29e7207f2ea9d8b56070fd9d534bca (patch) | |
tree | a13298c449e34f73b9bfc123bc658e3590e1055c /lib/chef/resource/cron.rb | |
parent | 0a1f934f5b1af117cb1c04311a4c6e3469b16f4d (diff) | |
download | chef-72f051cd4b29e7207f2ea9d8b56070fd9d534bca.tar.gz |
Add descriptions to the cron resource
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/cron.rb')
-rw-r--r-- | lib/chef/resource/cron.rb | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/lib/chef/resource/cron.rb b/lib/chef/resource/cron.rb index 57cc483c8a..647853bd9f 100644 --- a/lib/chef/resource/cron.rb +++ b/lib/chef/resource/cron.rb @@ -134,14 +134,33 @@ class Chef ) end - property :time, Symbol, equal_to: Chef::Provider::Cron::SPECIAL_TIME_VALUES - property :mailto, String - property :path, String - property :home, String - property :shell, String - property :command, String, identity: true - property :user, String, default: "root" - property :environment, Hash, default: lazy { Hash.new } + property :time, Symbol, + description: "A time interval. Possible values: :annually, :daily, :hourly, :midnight, :monthly, :reboot, :weekly, or :yearly.", + equal_to: Chef::Provider::Cron::SPECIAL_TIME_VALUES + + property :mailto, String, + description: "Set the MAILTO environment variable." + + property :path, String, + description: "Set the PATH environment variable." + + property :home, String, + description: "Set the HOME environment variable." + + property :shell, String, + description: "Set the SHELL environment variable." + + property :command, String, + description: "The command to be run, or the path to a file that contains the command to be run.", + identity: true + + property :user, String, + description: "The name of the user that runs the command. If the user property is changed, the original user for the crontab program continues to run until that crontab program is deleted. This property is not applicable on the AIX platform.", + default: "root" + + property :environment, Hash, + description: "A Hash of environment variables in the form of ({'ENV_VARIABLE' => 'VALUE'}). (These variables must exist for a command to be run successfully.)", + default: lazy { Hash.new } private |