summaryrefslogtreecommitdiff
path: root/lib/chef/file_content_management/tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/file_content_management/tempfile.rb')
-rw-r--r--lib/chef/file_content_management/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/file_content_management/tempfile.rb b/lib/chef/file_content_management/tempfile.rb
index c3bf07d92b..3e57a131a6 100644
--- a/lib/chef/file_content_management/tempfile.rb
+++ b/lib/chef/file_content_management/tempfile.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "tempfile"
+require "tempfile" unless defined?(Tempfile)
class Chef
class FileContentManagement