#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') begin require 'vegas' rescue require 'rubygems' require 'vegas' end require 'kthxbye/web_interface' require 'kthxbye/config' Vegas::Runner.new(Kthxbye::WebInterface, 'kthxbye-monitor') do |runner, args, app| Kthxbye::Config.setup args.on('-S SERVER', '--server SERVER', "set the redis server") {|server| Kthxbye::Config.options[:redis_server] = server } args.on('-P PORT', '--port PORT', "set the redis port") {|port| Kthxbye::Config.options[:redis_port] = port } end