Sha256: 9a2ece7a8f578cec7b69ebafce4d2186dc13346320d3f3d70064fb04c79a0d64

Contents?: true

Size: 773 Bytes

Versions: 1

Compression:

Stored size: 773 Bytes

Contents

#!/usr/bin/ruby
#
# Usage:
#
#   tsung_stats_server [Options] 
#
#
# Options:
#
#   --logdir: Log directory to use instead of the default directory
#   --tsung_stats: Command to call tsung_stats.pl
#   --port: The port to run the server on
#

require 'rubygems'

#gem 'inochi', '~> 0'
require 'inochi'

COMMAND_LINE = Inochi.main :TsungStatsServer do
  opt :logdir, "Log directory to use instead of the default directory", :default => File.expand_path("~/.tsung/log")
  opt :tsung_stats, "Command to call tsung_stats.pl", :default => "perl -S /usr/lib/tsung/bin/tsung_stats.pl"
  opt :port, "The port to run the server on", :default => 1789
end

require File.join(File.dirname(__FILE__), '..', 'lib', 'webapp')

Rack::Handler::WEBrick.run TSSApp, :Port => COMMAND_LINE.port

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tsung_stats_server-0.0.1 bin/tsung_stats_server