aboutsummaryrefslogtreecommitdiff
path: root/bin/mauveconsole
blob: d3751392afb9f92e657e56b4a13ae6d54700f5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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