class Flume::CLI

Public Instance Methods

tail(list) click to toggle source
# File lib/flume/cli.rb, line 7
def tail(list)
  logger = Flume.logger :list => list
  puts logger.tail(options[:number])

  if options[:f]
    trap(:INT) { puts; exit }
    logger.tailf do |line|
      puts line
    end
  end
end
version() click to toggle source
# File lib/flume/cli.rb, line 20
def version
  puts "Flume #{Flume::VERSION}"
end