#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') begin require 'vegas' rescue LoadError require 'rubygems' require 'vegas' end require 'prisma/server' Vegas::Runner.new(Prisma::Server, 'prisma-web') do |runner, opts, app| opts.on('-N NAMESPACE', "--namespace NAMESPACE", "set the Redis namespace") {|namespace| runner.logger.info "Using Redis namespace '#{namespace}'" Prisma.redis_namespace = namespace } opts.on('-r redis-connection', "--redis redis-connection", "set the Redis connection string") {|redis_connection| runner.logger.info "Using Redis connection '#{redis_connection}'" Prisma.redis = redis_connection } end