summaryrefslogtreecommitdiff
path: root/lib/chef/resource/chocolatey_package.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-04-02 10:36:21 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-04-02 10:36:21 -0700
commit5daf9335db751d651ed215c012cb932ff2ef425d (patch)
treedb0692cd03271926d0b474fca748c63d9285df26 /lib/chef/resource/chocolatey_package.rb
parent40b8dbcc1be0454873b79b04537baa074c221361 (diff)
downloadchef-5daf9335db751d651ed215c012cb932ff2ef425d.tar.gz
Chef-13: coerce package options property to a Stringlcg/package-options
Windows side we still can't support this kind of API, this is for Unix-ey stuff. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/chocolatey_package.rb')
-rw-r--r--lib/chef/resource/chocolatey_package.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/resource/chocolatey_package.rb b/lib/chef/resource/chocolatey_package.rb
index 5460661f6d..a443b9a1d7 100644
--- a/lib/chef/resource/chocolatey_package.rb
+++ b/lib/chef/resource/chocolatey_package.rb
@@ -1,6 +1,6 @@
#
# Author:: Adam Jacob (<adam@chef.io>)
-# Copyright:: Copyright 2008-2016, Chef Software, Inc.
+# Copyright:: Copyright 2008-2017, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -31,6 +31,9 @@ class Chef
@resource_name = :chocolatey_package
end
+ # windows can't take Array options yet
+ property :options, String
+
property :package_name, [String, Array], coerce: proc { |x| [x].flatten }
property :version, [String, Array], coerce: proc { |x| [x].flatten }