def rescan_assets(connection)
      scans     = {}
      sites_ids = @assets.map(&:site_id).uniq
      sites_ids.each do |site_id|
        to_scan = @assets.select { |d| d.site_id == site_id }
        scans[site_id] = connection.scan_devices(to_scan)
      end
      scans
    end
def rescan_assets(connection)
      scans     = {}
      sites_ids = @assets.map(&:site_id).uniq
      sites_ids.each do |site_id|
        to_scan = @assets.select { |d| d.site_id == site_id }
        scans[site_id] = connection.scan_devices(to_scan)
      end
      scans
    end
Launch ad hoc scans against each group of assets per site.

 @param [Connection] connection Connection to console where asset group
   is configured.
 @return [Hash] Hash of site ID to Scan launch information for each scan.