diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-05-20 18:05:36 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-05-20 18:05:36 -0700 |
commit | 9dbdb769bfd963f82eb4bfea53c83501d0193766 (patch) | |
tree | daba4babc4ba8eb73bd765783dc8a53a7abff6be /lib/chef/provider/git.rb | |
parent | 248344cfe776b66a8da563c985e34d9c99967791 (diff) | |
download | chef-lcg/require-idempotency.tar.gz |
This hits the ones that are most frequently required.lcg/require-idempotency
Stops the kernel from scanning through all the activated gems every time in order
to resolve names into pathnames.
See rubygems/rubygems#2762
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/git.rb')
-rw-r--r-- | lib/chef/provider/git.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb index 1abffe62fa..2d8cfbc877 100644 --- a/lib/chef/provider/git.rb +++ b/lib/chef/provider/git.rb @@ -19,7 +19,7 @@ require_relative "../exceptions" require_relative "../log" require_relative "../provider" -require "fileutils" +require "fileutils" unless defined?(FileUtils) class Chef class Provider @@ -314,7 +314,7 @@ class Chef # user who is executing `git` not the user running Chef. env["HOME"] = begin - require "etc" + require "etc" unless defined?(Etc) case new_resource.user when Integer Etc.getpwuid(new_resource.user).dir |