sprinkle-tool/sprinkle — pull request #139 by tlj (2013-07-04 13:43:41+00:00)
Title: Fix a problem where Tempfiles are removed by Ruby GC before they are used

When Tempfile objects are cleaned by the Ruby garbage collector, it will delete the file as well as the object. Since "file" was a local variable in the File installer, it was possible that the file was deleted by GC before the installer was actually run.

By changing the local variable to be an instance variable we avoid this problem.