Permalink
Browse files

use Dir.tmpdir provided by tempfile on both 1.8.7 and 1.9

  • Loading branch information...
jnewland committed Jun 10, 2011
1 parent 5bd5a32 commit 27960020a13dba9c6db4ede532cd892ab4f3a3a6
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/chef/knife/cookbook_github_install.rb
@@ -19,6 +19,7 @@
#
require 'chef/knife'
+require 'tempfile'
class Chef
class Knife
@@ -112,7 +113,7 @@ def temp_clone_path
end
def tmpdir
- ENV['TMPDIR']
+ Dir.tmpdir
end
def clone_cookbook

0 comments on commit 2796002

Please sign in to comment.