Class: Nasl::CommandXml

Inherits:
Command show all
Defined in:
lib/nasl/commands/xml.rb

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
# File 'lib/nasl/commands/xml.rb', line 33

def self.analyze(cfg, path, args)
  contents = File.open(path, "rb").read
  puts Parser.new.parse(contents).to_s
end

.bindingObject



29
30
31
# File 'lib/nasl/commands/xml.rb', line 29

def self.binding
  'xml'
end