cli.rb 414 B

12345678910111213141516
  1. require 'rbconfig'
  2. require 'rails/script_rails_loader'
  3. # If we are inside a Rails application this method performs an exec and thus
  4. # the rest of this script is not run.
  5. Rails::ScriptRailsLoader.exec_script_rails!
  6. require 'rails/ruby_version_check'
  7. Signal.trap("INT") { puts; exit(1) }
  8. if ARGV.first == 'plugin'
  9. ARGV.shift
  10. require 'rails/commands/plugin_new'
  11. else
  12. require 'rails/commands/application'
  13. end