Class: Rubygems::Await::NamesAwaiter
- Defined in:
- lib/rubygems/await.rb
Instance Attribute Summary
Attributes inherited from Awaiter
#deadline, #gems, #name_indent, #source, #source_uri
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Awaiter
#call, call, #compact_index_client, #downloader, #expired?, #format_element, #gem_remote_fetcher, #index_fetcher, #inherited, #initialize, #log, #log_error, #log_found, #process_element, #safe_load_marshal, subclasses
Constructor Details
This class inherits a constructor from Rubygems::Await::Awaiter
Class Method Details
.awaiter_name ⇒ Object
241 242 243 |
# File 'lib/rubygems/await.rb', line 241 def self.awaiter_name "names" end |
Instance Method Details
#collection ⇒ Object
231 232 233 |
# File 'lib/rubygems/await.rb', line 231 def collection Set.new gems.map(&:name) end |
#process_collection(missing) ⇒ Object
235 236 237 238 239 |
# File 'lib/rubygems/await.rb', line 235 def process_collection(missing) compact_index_client.names.each do |name| log_found(name) if missing.delete?(name) end end |