#!/usr/bin/ruby

####################################################################
#                                                                  #
#      Copyright (c) 2009, Bob Remeika and others                  #
#      All Rights Reserved.                                        #
#                                                                  #
#      Licensed under the MIT License.                             #
#      For more information on drails licensing, see:              #
#                                                                  #
#          http://www.opensource.org/licenses/mit-license.php      #
#                                                                  #
####################################################################

$LOAD_PATH << File.dirname(__FILE__)

require 'rubygems'
require 'fileutils'
require 'installer'

rails_root = ENV['RAILS_ROOT'] ? ENV['RAILS_ROOT'] : RAILS_ROOT

installer = Drails::Installer.new(rails_root, File.dirname(__FILE__))
installer.require_prerequisites!
installer.install!


