Class: Jets::Gems::Report
- Inherits:
-
Object
- Object
- Jets::Gems::Report
- Includes:
- Api::Concern
- Defined in:
- lib/jets/gems/report.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Report
constructor
A new instance of Report.
- #report(gems) ⇒ Object
Methods included from Api::Concern
Constructor Details
#initialize(options = {}) ⇒ Report
Returns a new instance of Report.
7 8 9 |
# File 'lib/jets/gems/report.rb', line 7 def initialize( = {}) @options = end |
Instance Method Details
#report(gems) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# 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 |