summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook/gem_installer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/cookbook/gem_installer.rb')
-rw-r--r--lib/chef/cookbook/gem_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb
index 830dce757a..bd1d0fb93a 100644
--- a/lib/chef/cookbook/gem_installer.rb
+++ b/lib/chef/cookbook/gem_installer.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require "tmpdir"
+require "tmpdir" unless defined?(Dir.mktmpdir)
require_relative "../mixin/shell_out"
class Chef