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