diff options
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 |