summaryrefslogtreecommitdiff
path: root/lib/chef/resource/chef_client_scheduled_task.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/chef_client_scheduled_task.rb')
-rw-r--r--lib/chef/resource/chef_client_scheduled_task.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/chef_client_scheduled_task.rb b/lib/chef/resource/chef_client_scheduled_task.rb
index c4d2bc97c6..3d9deb6ca3 100644
--- a/lib/chef/resource/chef_client_scheduled_task.rb
+++ b/lib/chef/resource/chef_client_scheduled_task.rb
@@ -49,6 +49,10 @@ class Chef
resource_name :chef_client_scheduled_task
+ property :task_name, String,
+ description: "The name of the scheduled task to create.",
+ default: Chef::Dist::CLIENT
+
property :user, String,
description: "The name of the user that #{Chef::Dist::PRODUCT} runs as.",
default: "System", sensitive: true
@@ -109,10 +113,6 @@ class Chef
description: "An array of options to pass to the #{Chef::Dist::CLIENT} command.",
default: lazy { [] }
- property :task_name, String,
- description: "The name of the scheduled task to create.",
- default: Chef::Dist::CLIENT
-
action :add do
# TODO: Replace this with a :create_if_missing action on directory when that exists
unless Dir.exist?(new_resource.log_directory)