diff options
author | Tim Smith <tsmith@chef.io> | 2021-05-12 18:50:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 18:50:24 -0700 |
commit | 341d516d3b39818808671ff7d947f14c8c39137f (patch) | |
tree | be6580c5964e50b072232b58fea407bcf522d501 | |
parent | 6af0f600de98440a3ffe0cd3f6b24697fd6d1a95 (diff) | |
parent | 3f6c0dbf37f640b4ba5778a8c49a79d6d300b4de (diff) | |
download | chef-341d516d3b39818808671ff7d947f14c8c39137f.tar.gz |
Merge pull request #11575 from chef/more_docs
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/chef_client_config.rb | 6 | ||||
-rw-r--r-- | lib/chef/resource/chef_client_launchd.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/chef_client_scheduled_task.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/chef_client_systemd_timer.rb | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/chef/resource/chef_client_config.rb b/lib/chef/resource/chef_client_config.rb index 2cc2f7ebdc..770aedf442 100644 --- a/lib/chef/resource/chef_client_config.rb +++ b/lib/chef/resource/chef_client_config.rb @@ -139,7 +139,7 @@ class Chef DESC property :formatters, Array, - description: "", + description: "Client logging formatters to load.", default: [] property :event_loggers, Array, @@ -227,7 +227,7 @@ class Chef property :additional_config, String, description: "Additional text to add at the bottom of the client.rb config. This can be used to run custom Ruby or to add less common config options" - action :create, description: "Create a client.rb config file." do + action :create, description: "Create a client.rb config file for configuring #{ChefUtils::Dist::Infra::PRODUCT}." do unless ::Dir.exist?(new_resource.config_directory) directory new_resource.config_directory do user new_resource.user unless new_resource.user.nil? @@ -284,7 +284,7 @@ class Chef end end - action :remove, description: "Remove a client.rb config file." do + action :remove, description: "Remove a client.rb config file for configuring #{ChefUtils::Dist::Infra::PRODUCT}." do file ::File.join(new_resource.config_directory, "client.rb") do action :delete end diff --git a/lib/chef/resource/chef_client_launchd.rb b/lib/chef/resource/chef_client_launchd.rb index 65c561a2a2..86c2b6ce7d 100644 --- a/lib/chef/resource/chef_client_launchd.rb +++ b/lib/chef/resource/chef_client_launchd.rb @@ -101,7 +101,7 @@ class Chef description: "Run the #{ChefUtils::Dist::Infra::CLIENT} process with low priority disk IO", default: true - action :enable do + action :enable, description: "Enable running #{ChefUtils::Dist::Infra::PRODUCT} on a schedule using launchd." do unless ::Dir.exist?(new_resource.log_directory) directory new_resource.log_directory do owner new_resource.user @@ -148,7 +148,7 @@ class Chef end end - action :disable do + action :disable, description: "Disable running #{ChefUtils::Dist::Infra::PRODUCT} on a schedule using launchd" do service ChefUtils::Dist::Infra::PRODUCT do service_name "com.#{ChefUtils::Dist::Infra::SHORT}.#{ChefUtils::Dist::Infra::CLIENT}" action :disable diff --git a/lib/chef/resource/chef_client_scheduled_task.rb b/lib/chef/resource/chef_client_scheduled_task.rb index 963423919d..e963ac21cc 100644 --- a/lib/chef/resource/chef_client_scheduled_task.rb +++ b/lib/chef/resource/chef_client_scheduled_task.rb @@ -129,7 +129,7 @@ class Chef description: "An array of options to pass to the #{ChefUtils::Dist::Infra::CLIENT} command.", default: [] - action :add do + action :add, description: "Add a Windows Scheduled Task that runs #{ChefUtils::Dist::Infra::PRODUCT}." do # TODO: Replace this with a :create_if_missing action on directory when that exists unless Dir.exist?(new_resource.log_directory) directory new_resource.log_directory do @@ -157,7 +157,7 @@ class Chef end end - action :remove do + action :remove, description: "Remove a Windows Scheduled Task that runs #{ChefUtils::Dist::Infra::PRODUCT}." do windows_task new_resource.task_name do action :delete end diff --git a/lib/chef/resource/chef_client_systemd_timer.rb b/lib/chef/resource/chef_client_systemd_timer.rb index bc338fa85a..57dc8a36a4 100644 --- a/lib/chef/resource/chef_client_systemd_timer.rb +++ b/lib/chef/resource/chef_client_systemd_timer.rb @@ -104,7 +104,7 @@ class Chef coerce: proc { |x| Integer(x) }, callbacks: { "should be a positive Integer" => proc { |v| v > 0 } } - action :add do + action :add, description: "Add a systemd timer that runs #{ChefUtils::Dist::Infra::PRODUCT}." do systemd_unit "#{new_resource.job_name}.service" do content service_content action :create @@ -116,7 +116,7 @@ class Chef end end - action :remove do + action :remove, description: "Remove a systemd timer that runs #{ChefUtils::Dist::Infra::PRODUCT}." do systemd_unit "#{new_resource.job_name}.service" do action :delete end |