lib/nexpose/scan.rb
# Retrieve a list of current scan activities across all Scan Engines
# managed by Nexpose.
#
# @return [Array[ScanSummary]] Array of ScanSummary objects associated with
#   each active scan on the engines.
#
Retrieve a list of current scan activities across all Scan Engines
managed by Nexpose.
Retrieve a list of current scan activities across all Scan Engines managed by Nexpose .
def scan_activity
      r = execute(make_xml('ScanActivityRequest'))
      res = []
      if r.success
        r.res.elements.each('//ScanSummary') do |scan|
          res << ScanSummary.parse(scan)
        end
      end
      res
    end
def scan_activity r = execute ( make_xml ( 'ScanActivityRequest' ) ) res = [ ] if r . success r . res . elements . each ( '//ScanSummary' ) do | scan | res << ScanSummary . parse ( scan ) end end res end
Retrieve a list of current scan activities across all Scan Engines
managed by Nexpose.
Retrieve a list of current scan activities across all Scan Engines managed by Nexpose .
] Array of ScanSummary objects associated with each active scan on the engines.
] Array of ScanSummary objects associated with each active scan on the engines .
Array[ScanSummary