diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-04-02 10:36:21 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-04-02 10:36:21 -0700 |
commit | 5daf9335db751d651ed215c012cb932ff2ef425d (patch) | |
tree | db0692cd03271926d0b474fca748c63d9285df26 /lib/chef/resource/package.rb | |
parent | 40b8dbcc1be0454873b79b04537baa074c221361 (diff) | |
download | chef-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/package.rb')
-rw-r--r-- | lib/chef/resource/package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/package.rb b/lib/chef/resource/package.rb index a1f174a6f3..5647f203d2 100644 --- a/lib/chef/resource/package.rb +++ b/lib/chef/resource/package.rb @@ -36,7 +36,7 @@ class Chef property :package_name, [ String, Array ], identity: true property :version, [ String, Array ] - property :options, [ String, Array ] + property :options, [ String, Array ], coerce: proc { |x| x.is_a?(String) ? x.shellsplit : x } property :response_file, String, desired_state: false property :response_file_variables, Hash, default: lazy { {} }, desired_state: false property :source, String, desired_state: false |