class Jets::Gems::Report

Public Class Methods

new(options={}) click to toggle source
# File lib/jets/gems/report.rb, line 7
def initialize(options={})
  @options = options
end

Public Instance Methods

report(gems) click to toggle source
# File lib/jets/gems/report.rb, line 11
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