lib/nexpose/engine.rb
# Save this engine configuration to the security console.
#
# @param [Connection] connection Connection to console where site exists.
# @return [Fixnum] ID assigned to the scan engine.
#
Save this engine configuration to the security console.
Save this engine configuration to the security console .
def save(connection)
      xml = '<EngineSaveRequest session-id="' + connection.session_id + '">'
      xml << to_xml
      xml << '</EngineSaveRequest>'
      r = connection.execute(xml, '1.2')
      if r.success
        r.res.elements.each('EngineSaveResponse/EngineConfig') do |v|
          return @id = v.attributes['id']
        end
      end
    end
def save ( connection ) xml = '<EngineSaveRequest session-id="' + connection . session_id + '">' xml << to_xml xml << '</EngineSaveRequest>' r = connection . execute ( xml , '1.2' ) if r . success r . res . elements . each ( 'EngineSaveResponse/EngineConfig' ) do | v | return @id = v . attributes [ 'id' ] end end end
Save this engine configuration to the security console.
Save this engine configuration to the security console .
ID assigned to the scan engine.
ID assigned to the scan engine .
Fixnum
connection
<not_specific>
<not_specific>
connection Connection to console where site exists.
connection Connection to console where site exists .