From 89a67770e66d11740948e90a41db6cee0482cf8e Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 13 Apr 2011 17:03:16 +0100 Subject: new version. --- bin/mauveconsole | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bin/mauveconsole (limited to 'bin/mauveconsole') diff --git a/bin/mauveconsole b/bin/mauveconsole new file mode 100755 index 0000000..d375139 --- /dev/null +++ b/bin/mauveconsole @@ -0,0 +1,23 @@ +#!/usr/bin/ruby1.8 + +require 'pp' +pp $: + +Thread.abort_on_exception = true +require 'irb' +require 'thread' + +# hack for delving into test-generated configurations +class AlertAndNotificationLogic; Alerts = Queue.new; end + +require 'mauve/configuration' +include Mauve +#raise "must specify config file" unless ARGV.length > 0 +unless ARGV.length > 0 + STDERR.print("You must specify a configuration file as $arg[1]\n") + STDERR.print(" eg: ./mauve_starter ./bin/console ./test/local.conf\n") + exit 1 +end +Configuration.current = ConfigurationBuilder.load(ARGV.shift) +IRB.start + -- cgit v1.2.1