Sha256: 365eec22106cb369b660bc316288633e22c293b98a4973cf91e1e8a98b432bfb

Contents?: true

Size: 519 Bytes

Versions: 11

Compression:

Stored size: 519 Bytes

Contents

require "net/http"

module Jets::Gems
  class Report
    include Jets::Gems::Api::Concern

    def initialize(options={})
      @options = options
    end

    def report(gems)
      threads = []
      gems.each do |gem_name|
        threads << Thread.new do
          api.report_missing(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

11 entries across 11 versions & 1 rubygems

Version Path
serverlessgems-0.4.0 lib/jets/gems/report.rb
serverlessgems-0.3.0 lib/jets/gems/report.rb
serverlessgems-0.2.1 lib/jets/gems/report.rb
serverlessgems-0.2.0 lib/jets/gems/report.rb
serverlessgems-0.1.6 lib/jets/gems/report.rb
serverlessgems-0.1.5 lib/jets/gems/report.rb
serverlessgems-0.1.4 lib/jets/gems/report.rb
serverlessgems-0.1.3 lib/jets/gems/report.rb
serverlessgems-0.1.2 lib/jets/gems/report.rb
serverlessgems-0.1.1 lib/jets/gems/report.rb
serverlessgems-0.1.0 lib/jets/gems/report.rb