lib/ntail/application.rb in ntail-0.0.12 vs lib/ntail/application.rb in ntail-0.1.0

- old
+ new

@@ -8,11 +8,11 @@ # default application options... DEFAULT_OPTIONS = { :interrupted => false, :running => true, - :nginx => true, + :pattern => :nginx, :exit => 0, } # parsed application options... @options = nil @@ -29,10 +29,10 @@ @options = parse_options(argv, DEFAULT_OPTIONS) end def run! - LogLine.set_log_pattern(@options.nginx) + LogLine.set_pattern(@options.pattern) ['TERM', 'INT'].each do |signal| Signal.trap(signal) do @options.running = false ; @options.interrupted = true $stdin.close if ARGF.file == $stdin # ie. reading from STDIN