summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-26 19:16:18 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-27 15:18:55 -0700
commit66f45381f0ad332ef6d2f80645d54bd45c3e8f4e (patch)
tree02604ff3522e639414d118e4875f448fcc099b47
parenta92e03c00eb7633e529732a12cbc6a56646e9187 (diff)
downloadchef-66f45381f0ad332ef6d2f80645d54bd45c3e8f4e.tar.gz
chef_client_scheduled_task updates to formatting
This makes it easier to diff with the cookbook Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/chef_client_scheduled_task.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/resource/chef_client_scheduled_task.rb b/lib/chef/resource/chef_client_scheduled_task.rb
index 319acd3d41..7fde581763 100644
--- a/lib/chef/resource/chef_client_scheduled_task.rb
+++ b/lib/chef/resource/chef_client_scheduled_task.rb
@@ -70,8 +70,9 @@ class Chef
description: "The name of the user that #{Chef::Dist::PRODUCT} runs as.",
default: "System", sensitive: true
- property :password, String, sensitive: true,
- description: "The password for the user that #{Chef::Dist::PRODUCT} runs as."
+ property :password, String,
+ description: "The password for the user that #{Chef::Dist::PRODUCT} runs as.",
+ sensitive: true
property :frequency, String,
description: "Frequency with which to run the task.",
@@ -175,9 +176,11 @@ class Chef
"#{cmd_path} /c \"#{client_cmd}\""
end
+ #
# Build command line to pass to cmd.exe
#
# @return [String]
+ #
def client_cmd
cmd = new_resource.chef_binary_path.dup
cmd << " -L #{::File.join(new_resource.log_directory, new_resource.log_file_name)}"