summaryrefslogtreecommitdiff
path: root/lib/chef/resource/launchd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/launchd.rb')
-rw-r--r--lib/chef/resource/launchd.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb
index 719938dec2..2c15694ef3 100644
--- a/lib/chef/resource/launchd.rb
+++ b/lib/chef/resource/launchd.rb
@@ -202,7 +202,11 @@ class Chef
description: "The first argument of `execvp`, typically the file name associated with the file to be executed. This value must be specified if `program_arguments` is not specified, and vice-versa."
property :program_arguments, Array,
- description: "The second argument of `execvp`. If program is not specified, this property must be specified and will be handled as if it were the first argument."
+ description: "The second argument of `execvp`. If program is not specified, this property must be specified and will be handled as if it were the first argument.",
+ coerce: proc { |args|
+ # Cast all values to a string. Launchd only supports string values
+ args.map(&:to_s)
+ }
property :queue_directories, Array,
description: "An array of non-empty directories which, if any are modified, will cause a job to be started."