#!/usr/bin/env ruby require 'date' require 'irb' require 'rubygems' require 'doozer' @env = (ARGV.length > 0) ? ARGV[0] : 'development' ARGV.delete(@env) if ARGV.include?(@env) @env = @env.to_sym printf "[Doozer #{Doozer::Version::STRING}]\n" # see http://ruby-doc.org/core/ for more options IRB.conf[:LOAD_MODULES] = ["irb/completion", "#{DOOZER_PATH}/doozer/scripts/console"] IRB.conf[:USE_READLINE] = true IRB.load_modules() IRB.parse_opts() IRB.start()