2010-02-25 11:32:37 -05:00
|
|
|
require 'rbconfig'
|
2010-06-10 14:00:58 -04:00
|
|
|
require 'rails/script_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.
|
2010-02-25 11:32:37 -05:00
|
|
|
Rails::ScriptRailsLoader.exec_script_rails!
|
|
|
|
|
|
|
|
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
|
|
|
|
require 'rails/commands/plugin_new'
|
|
|
|
else
|
|
|
|
require 'rails/commands/application'
|
|
|
|
end
|