Sha256: 6aa0506d89b1f7fa7fecdbdcd820883b5f43cc5067593cbdab92604dab4a51e6

Contents?: true

Size: 342 Bytes

Versions: 10

Compression:

Stored size: 342 Bytes

Contents

require 'tailstrom/tail_reader'

module Tailstrom
  module Command
    class Print
      def initialize(options)
        @infile = $stdin
        @options = options
      end

      def run
        reader = TailReader.new @infile, @options
        reader.each_line do |line|
          puts line[:line]
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tailstrom-0.0.11 lib/tailstrom/command/print.rb
tailstrom-0.0.10 lib/tailstrom/command/print.rb
tailstrom-0.0.9 lib/tailstrom/command/print.rb
tailstrom-0.0.8 lib/tailstrom/command/print.rb
tailstrom-0.0.7 lib/tailstrom/command/print.rb
tailstrom-0.0.6 lib/tailstrom/command/print.rb
tailstrom-0.0.5 lib/tailstrom/command/print.rb
tailstrom-0.0.4 lib/tailstrom/command/print.rb
tailstrom-0.0.3 lib/tailstrom/command/print.rb
tailstrom-0.0.2 lib/tailstrom/command/print.rb