Module: Wtails::Tail
Defined Under Namespace
Classes: Reader
Constant Summary collapse
- ENTITY_MAP =
{ "<" => "<", ">" => ">", }
Instance Method Summary collapse
Instance Method Details
#run(opts, files) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/wtails/tail.rb', line 10 def run(opts, files) files.each do |path| if path == '-' EM.defer { Wtails::Stdin.run } else EventMachine::file_tail(path, Reader) end end end |