Sha256: 3802ee8272efe75be95323f8c96aca7cb34f7f20e7df6e61b04be65ef5f19b87

Contents?: true

Size: 301 Bytes

Versions: 18

Compression:

Stored size: 301 Bytes

Contents

module ResqueWeb
  module WorkersHelper
    def worker_hosts
      @worker_hosts ||= begin
        hosts = Hash.new { [] }

        Resque.workers.each do |worker|
          host, _ = worker.to_s.split(':')
          hosts[host] += [worker.to_s]
        end

        hosts
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
resque-web-0.0.12 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.11 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.10 app/helpers/resque_web/workers_helper.rb
misha-resque-web-0.1.1 app/helpers/resque_web/workers_helper.rb
misha-resque-web-0.1.0 app/helpers/resque_web/workers_helper.rb
misha-resque-web-0.0.9 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.9 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.8 app/helpers/resque_web/workers_helper.rb
resque-web-edge-1.0.0 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.7 app/helpers/resque_web/workers_helper.rb
resque-web-clone-0.0.7 app/helpers/resque_web/workers_helper.rb
resque-web-clone-0.0.6 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.6 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.5 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.4 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.3 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.2 app/helpers/resque_web/workers_helper.rb
resque-web-0.0.1 app/helpers/resque_web/workers_helper.rb