Module: AbideDevUtils::XCCDF::Diff

Defined in:
lib/abide_dev_utils/xccdf/diff.rb

Overview

Contains methods and classes used to diff XCCDF-derived objects.

Defined Under Namespace

Classes: BenchmarkDiff

Class Method Summary collapse

Class Method Details

.benchmark_diff(xml1, xml2, opts = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/abide_dev_utils/xccdf/diff.rb', line 9

def self.benchmark_diff(xml1, xml2, opts = {})
  bd = BenchmarkDiff.new(xml1, xml2, opts)
  if opts[:raw]
    return bd.diff_rules_raw if opts[:rules_only]

    bd.diff_raw
  else
    return bd.diff_rules if opts[:rules_only]

    bd.diff
  end
end