class Tailstrom::Command::Print

Public Class Methods

new(options) click to toggle source
# File lib/tailstrom/command/print.rb, line 6
def initialize(options)
  @infile = $stdin
  @options = options
end

Public Instance Methods

run() click to toggle source
# File lib/tailstrom/command/print.rb, line 11
def run
  reader = TailReader.new @infile, @options
  reader.each_line do |line|
    puts line[:line]
  end
end