Class: CI::Queue::File
Constant Summary
Constants inherited from Static
Constants included from Common
Instance Attribute Summary
Attributes inherited from Static
Attributes included from Common
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path, *args) ⇒ File
constructor
A new instance of File.
Methods inherited from Static
#acknowledge, #boot_heartbeat_process!, #build, #created_at=, #distributed?, #ensure_heartbeat_thread_alive!, #exhausted?, #expired?, #increment_test_failed, #max_test_failed?, #poll, #populate, #populated?, #remaining, #requeue, #retry_queue, #running, #shutdown!, #size, #stop_heartbeat!, #supervisor, #test_failed, #to_a, #with_heartbeat
Methods included from Common
#distributed?, #flaky?, #release!, #report_failure!, #report_success!, #rescue_connection_errors, #retrying?
Constructor Details
#initialize(path, *args) ⇒ File
Returns a new instance of File.
13 14 15 16 |
# File 'lib/ci/queue/file.rb', line 13 def initialize(path, *args) io = path == '-' ? STDIN : ::File.open(path) super(io.each_line.map(&:strip).reject(&:empty?), *args) end |
Class Method Details
.from_uri(uri, config) ⇒ Object
8 9 10 |
# File 'lib/ci/queue/file.rb', line 8 def from_uri(uri, config) new(uri.path, config) end |