lib/nexpose/engine.rb
# Unique numeric identifier for the scan engine, assigned by the console
# in the order of creation.
Unique numeric identifier for the scan engine, assigned by the console
in the order of creation.
Unique numeric identifier for the scan engine assigned by the console in the order of creation .
def to_xml
      xml = '<EngineConfig'
      xml << %( id="#{id}")
      xml << %( address="#{address}")
      xml << %( name="#{replace_entities(name)}")
      xml << %( port="#{port}")
      xml << %( scope="#{scope}") if scope
      xml << %( priority="#{priority}") if priority
      xml << '>'
      sites.each do |site|
        xml << %(<Site id="#{site.id}" />)
      end
      xml << '</EngineConfig>'
      xml
    end
def to_xml xml = '<EngineConfig' xml << %( id="#{id}") xml << %( address="#{address}") xml << %( name="#{replace_entities(name)}") xml << %( port="#{port}") xml << %( scope="#{scope}") if scope xml << %( priority="#{priority}") if priority xml << '>' sites . each do | site | xml << %(<Site id="#{site.id}" />) end xml << '</EngineConfig>' xml end
Unique numeric identifier for the scan engine, assigned by the console
in the order of creation.
Unique numeric identifier for the scan engine assigned by the console in the order of creation .