Sha256: fecb249133ffe4fe6b9d8447ff61706406096aec147b6a2dff73d8f6c63c703f

Contents?: true

Size: 482 Bytes

Versions: 6

Compression:

Stored size: 482 Bytes

Contents

module HttpUtilities
  module Jobs
    module Resque
      module Proxies
        class CheckProxyJob
          @queue = :proxies

          def self.perform(proxy_id)
            proxy_object = ::Proxy.where(:id => proxy_id).first

            if (proxy_object)
              checker = HttpUtilities::Proxies::ProxyChecker.new
              checker.check_proxy(proxy_object)
              checker.update_proxies
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
http_utilities-1.0.7.1 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.0.7 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.0.6 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.0.5 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.0.2 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.0.1 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb