2010-02-25 11:32:37 -05:00
|
|
|
require 'rbconfig'
|
2013-01-06 18:13:47 -05:00
|
|
|
require 'rails/app_rails_loader'
|
2010-02-25 11:32:37 -05:00
|
|
|
|
2010-08-26 18:31:09 -04:00
|
|
|
# If we are inside a Rails application this method performs an exec and thus
|
|
|
|
# the rest of this script is not run.
|
2013-01-06 18:13:47 -05:00
|
|
|
Rails::AppRailsLoader.exec_app_rails
|
2010-02-25 11:32:37 -05:00
|
|
|
|
|
|
|
require 'rails/ruby_version_check'
|
2011-01-28 22:00:48 -05:00
|
|
|
Signal.trap("INT") { puts; exit(1) }
|
2010-02-25 11:32:37 -05:00
|
|
|
|
2010-10-15 10:46:31 -04:00
|
|
|
if ARGV.first == 'plugin'
|
|
|
|
ARGV.shift
|
2013-06-30 17:02:19 -04:00
|
|
|
require 'rails/commands/plugin'
|
2010-10-15 10:46:31 -04:00
|
|
|
else
|
|
|
|
require 'rails/commands/application'
|
|
|
|
end
|