opscode/chef — pull request #1062 by adamedx (2013-10-17 16:41:36+00:00)
Title: CHEF-4625: Explicitly close temp files to prevent sharing violations

On Windows, the lack of close before passing of the tempfile to the move deploy strategy caused an EACCESS exception when FileUtils.mv was called to move the tempfile to the destination.

This change addresses the problem in manual tests using the scenario from CHEF-4625. I was not able to find a reasonable functional test within the framework of shared_examples, but we can add that test as a separate commit in order to expedite getting a testable build.