This file is indexed.

/usr/share/doc/ruby-stomp/examples/publisher.rb is in ruby-stomp 1.2.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# -*- encoding: utf-8 -*-

require 'rubygems'
require 'stomp'

#client = Stomp::Client.new("", "", "localhost", 61613)

client = Stomp::Client.new("failover://(stomp://:@localhost:61613,stomp://:@remotehost:61613)?initialReconnectDelay=5000&randomize=false&useExponentialBackOff=false")
message = "ronaldo #{ARGV[0]}"

for i in (1..300)
  puts "Sending message"
  client.send("/queue/ronaldo", "#{i}: #{message}", {:persistent => true})
  puts "(#{Time.now})Message sent: #{i}"
  sleep 1
end