Class: CI::Queue::File

Inherits:
Static
  • Object
show all
Defined in:
lib/ci/queue/file.rb

Instance Attribute Summary

Attributes inherited from Static

#progress, #total

Instance Method Summary collapse

Methods inherited from Static

#acknowledge, #empty?, #poll, #requeue, #size, #to_a

Constructor Details

#initialize(path, **args) ⇒ File



6
7
8
# File 'lib/ci/queue/file.rb', line 6

def initialize(path, **args)
  super(::File.readlines(path).map(&:strip).reject(&:empty?), **args)
end