Sha256: 0a13e47bae946339b2fc44c2c3e8d77257a1ac2c29ff2367ccc919ae9b4ed046
Contents?: true
Size: 512 Bytes
Versions: 7
Compression:
Stored size: 512 Bytes
Contents
require "net/http" class Jets::Api::Gems class Report include Jets::Api def initialize(options={}) @options = options end def report(gems) threads = [] gems.each do |gem_name| threads << Thread.new do Jets::Api::Gems.report(gem_name: gem_name) end end # Wait for request to finish because the command might finish before # the Threads even send the request. So we join them just case threads.each(&:join) end end end
Version data entries
7 entries across 7 versions & 1 rubygems