push
travis-ci
496 of 595 relevant lines covered (83.36%)
12.29 hits per line
1 |
module ResqueWeb |
5✔ |
2 |
module WorkersHelper |
5✔ |
3 |
def worker_hosts |
5✔ |
4 |
@worker_hosts ||= begin |
6 only jruby-19mode and rbx ✔ |
5 |
hosts = Hash.new { [] }
|
15✔ |
6 |
|
|
7 |
Resque.workers.each do |worker| |
15✔ |
8 |
host, _ = worker.to_s.split(':')
|
× |
9 |
hosts[host] += [worker.to_s] |
× |
10 |
end
|
|
11 |
|
|
12 |
hosts |
15✔ |
13 |
end
|
12 all except jruby-19mode ✔ |
14 |
end
|
|
15 |
end
|
|
16 |
end
|