diff options
author | mwrock <matt@mattwrock.com> | 2020-09-04 18:46:27 -0700 |
---|---|---|
committer | mwrock <matt@mattwrock.com> | 2020-09-08 14:46:36 -0700 |
commit | 41ae92bd5070b450e04f02ae9a1d30987d14bb93 (patch) | |
tree | 952399197c5344e29a648560fda242ef77a7dd7e /lib/chef/util/diff.rb | |
parent | 313afa345a0d19019218807a16bf6fdd6447a87b (diff) | |
download | chef-41ae92bd5070b450e04f02ae9a1d30987d14bb93.tar.gz |
use autoloading for many required gems
Signed-off-by: mwrock <matt@mattwrock.com>
Diffstat (limited to 'lib/chef/util/diff.rb')
-rw-r--r-- | lib/chef/util/diff.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/util/diff.rb b/lib/chef/util/diff.rb index 3f8a925c4d..0774dea813 100644 --- a/lib/chef/util/diff.rb +++ b/lib/chef/util/diff.rb @@ -40,9 +40,6 @@ # CONNECTION WITH THE SOFTWARE OR THE USE OF OTHER DEALINGS IN THE # SOFTWARE. -require "diff/lcs" -require "diff/lcs/hunk" - class Chef class Util class Diff @@ -86,6 +83,9 @@ class Chef # produces a unified-output-format diff with 3 lines of context # ChefFS uses udiff() directly def udiff(old_file, new_file) + require "diff/lcs" + require "diff/lcs/hunk" + diff_str = "" file_length_difference = 0 |