Class: Nasl::CommandXml
Class Method Summary
collapse
Methods inherited from Command
all, banner, find, inherited, initialize!, run
Class Method Details
.analyze(cfg, path, args) ⇒ Object
33
34
35
36
37
38
39
|
# File 'lib/nasl/commands/xml.rb', line 33
def self.analyze(cfg, path, args)
contents = File.open(path, "rb").read
puts banner(path.basename)
puts Parser.new.parse(contents).to_s
puts banner(path.basename)
end
|
.binding ⇒ Object
29
30
31
|
# File 'lib/nasl/commands/xml.rb', line 29
def self.binding
'xml'
end
|