class CI::Queue::File

Public Class Methods

from_uri(uri, config) click to toggle source
# File lib/ci/queue/file.rb, line 8
def from_uri(uri, config)
  new(uri.path, config)
end
new(path, *args) click to toggle source
Calls superclass method
# 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