Commit 30a546ab authored by Tim Smith's avatar Tim Smith
Browse files

Only require libs if we haven't already loaded them



Rubygems is very slow at requiring files so only do it if we really need
to.
Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent c93d622e
......@@ -14,8 +14,8 @@
# limitations under the License.
#
require 'mixlib/shellout'
require 'pathname'
require 'mixlib/shellout' unless defined?(Mixlib::ShellOut)
require 'pathname' unless defined?(Pathname)
class Chef
module Sugar
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment