Class: AbideDevUtils::XCCDF::Diff::ProfileDiff

Inherits:
Object
  • Object
show all
Defined in:
lib/abide_dev_utils/xccdf/diff.rb,
lib/abide_dev_utils/xccdf/diff/benchmark/profile.rb

Overview

Diffs two sets of XCCDF profiles.

Instance Method Summary collapse

Constructor Details

#initialize(profiles, other_profiles) ⇒ ProfileDiff

Returns a new instance of ProfileDiff.



124
125
126
127
128
# File 'lib/abide_dev_utils/xccdf/diff.rb', line 124

def initialize(profile_a, profile_b, opts = {})
  @profile_a = profile_a
  @profile_b = profile_b
  @opts = opts
end

Instance Method Details

#diffObject



130
131
132
# File 'lib/abide_dev_utils/xccdf/diff.rb', line 130

def diff
  @diff ||= new_diff
end

#diff_hash(diff_type, profile1, prof1_rules, profile2, prof2_rules) ⇒ Object



14
15
16
17
18
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/profile.rb', line 14

def diff_hash(diff_type, profile1, prof1_rules, profile2, prof2_rules)
  {

  }
end