diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-15 11:24:02 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-15 11:24:02 -0700 |
commit | 41d99f6d8d8de416f9d5166e8e1f139ae768f134 (patch) | |
tree | 1bd1f2eccd21f396852b484e65213bef0774f1ff /spec/unit | |
parent | dd024e78b150636fd9f9a7163c5d53e0942e3570 (diff) | |
download | chef-41d99f6d8d8de416f9d5166e8e1f139ae768f134.tar.gz |
use File.extname and Tempfile.open array arg
in order to preserve the extention of the file in the rendered tempfile.
helps out with verification steps where the tempfile may be passed to a program
which gets annoyed if the extension isn't correct.
see https://github.com/chef/chef/issues/5324 for example
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
0 files changed, 0 insertions, 0 deletions