aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/cli.rb
blob: 12607726053d69491bdfca45fed76a2532394d2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rbconfig'
require 'rails/script_rails_loader'

# If we are inside a Rails application this method performs an exec and thus
# the rest of this script is not run.
Rails::ScriptRailsLoader.exec_script_rails!

railties_path = File.expand_path('../../lib', __FILE__)
$:.unshift(railties_path) if File.directory?(railties_path) && !$:.include?(railties_path)

require 'rails/ruby_version_check'
Signal.trap("INT") { puts; exit }

require 'rails/commands/application'