fix broken tempdir removal

This commit is contained in:
Felix C. Stegerman 2014-11-24 02:26:54 +01:00
parent d1691c21c7
commit aca273c996
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
require "fileutils"
require "monitor"
require "pathname"
require "set"
@ -79,7 +80,7 @@ module Vagrant
# Removes any temporary files created by init
def deinit
File.unlink(ENV["BUNDLE_APP_CONFIG"]) rescue nil
FileUtils.remove_entry_secure(ENV["BUNDLE_APP_CONFIG"]) rescue nil
File.unlink(ENV["BUNDLE_CONFIG"]) rescue nil
File.unlink(ENV["GEMFILE"]) rescue nil
end