Browse files

added a binary

  • Loading branch information...
1 parent 62022c0 commit cf7d62945a8ce6c213506503e18e5d77a952ac2d Aidy Lewis committed Jan 13, 2012
Showing with 15 additions and 0 deletions.
  1. +3 −0 lib/tsung_log_parser.rb
  2. +12 −0 tsung-log-parser
View
3 lib/tsung_log_parser.rb
@@ -1,3 +1,6 @@
+require "log_parser"
+require "dump_parser"
+
class TsungLogParser
def self.execute output, tsung_log, tsung_dump
parsed_log = LogParser.parse(File.read tsung_log)
View
12 tsung-log-parser
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+$:.unshift File.join(File.dirname(__FILE__), "lib")
+require 'tsung_log_parser'
+
+if ARGV.size == 2
+ log = ARGV[0]
+ dump = ARGV[1]
+ TsungLogParser.execute(Kernel, log, dump)
+else
+ puts "Usage: tsung-log-parser tsung.log tsung.dump"
+end

0 comments on commit cf7d629

Please sign in to comment.