Module: AbideDevUtils::XCCDF::Parser

Defined in:
lib/abide_dev_utils/xccdf/parser.rb,
lib/abide_dev_utils/xccdf/parser/helpers.rb,
lib/abide_dev_utils/xccdf/parser/objects.rb,
lib/abide_dev_utils/xccdf/parser/objects/diffable_object.rb,
lib/abide_dev_utils/xccdf/parser/objects/numbered_object.rb

Overview

Contains methods and classes for parsing XCCDF files,

Defined Under Namespace

Modules: Helpers, Linker, Objects

Class Method Summary collapse

Class Method Details

.parse(file_path) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/abide_dev_utils/xccdf/parser.rb', line 10

def self.parse(file_path)
  doc = AbideDevUtils::Files::Reader.read(file_path)
  doc.remove_namespaces!
  benchmark = AbideDevUtils::XCCDF::Parser::Objects::Benchmark.new(doc)
  Linker.resolve_links(benchmark)
  benchmark
end