diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-12-20 21:44:01 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-12-20 21:44:01 -0800 |
commit | 21f7c9bb607eeeac71618d161eae1a27e4e4816e (patch) | |
tree | 37dd55cdbde42e25d3f0a263ff392a25c749555f /lib/mixlib/shellout.rb | |
parent | c35d241209d5067afd6ed5fd23c063bf1ae74a58 (diff) | |
download | mixlib-shellout-relative.tar.gz |
Substitute require for require_relativerelative
require_relative is significantly faster and should be used when available.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/mixlib/shellout.rb')
-rw-r--r-- | lib/mixlib/shellout.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mixlib/shellout.rb b/lib/mixlib/shellout.rb index 9345eea..f366956 100644 --- a/lib/mixlib/shellout.rb +++ b/lib/mixlib/shellout.rb @@ -19,7 +19,7 @@ require "etc" require "tmpdir" require "fcntl" -require "mixlib/shellout/exceptions" +require_relative "shellout/exceptions" module Mixlib @@ -29,10 +29,10 @@ module Mixlib DEFAULT_READ_TIMEOUT = 600 if RUBY_PLATFORM =~ /mswin|mingw32|windows/ - require "mixlib/shellout/windows" + require_relative "shellout/windows" include ShellOut::Windows else - require "mixlib/shellout/unix" + require_relative "shellout/unix" include ShellOut::Unix end |