summaryrefslogtreecommitdiff
path: root/lib/chef/application/apply.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2019-05-22 13:04:26 -0700
committerGitHub <noreply@github.com>2019-05-22 13:04:26 -0700
commit2d699f12717755a2474e7a919af2700d36caa061 (patch)
tree0e3d05a674556487633ab9720014cbf7191e4458 /lib/chef/application/apply.rb
parentfce2dbce0bb8bfa10e155a2221efb30461dfccda (diff)
parent9dbdb769bfd963f82eb4bfea53c83501d0193766 (diff)
downloadchef-2d699f12717755a2474e7a919af2700d36caa061.tar.gz
Merge pull request #8544 from chef/lcg/require-idempotency
Gate requires with idempotency check
Diffstat (limited to 'lib/chef/application/apply.rb')
-rw-r--r--lib/chef/application/apply.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/application/apply.rb b/lib/chef/application/apply.rb
index 275fe19f93..1a9b115632 100644
--- a/lib/chef/application/apply.rb
+++ b/lib/chef/application/apply.rb
@@ -22,8 +22,8 @@ require_relative "../application"
require_relative "../client"
require_relative "../config"
require_relative "../log"
-require "fileutils"
-require "tempfile"
+require "fileutils" unless defined?(FileUtils)
+require "tempfile" unless defined?(Tempfile)
require_relative "../providers"
require_relative "../resources"
require_relative "../dist"