aboutsummaryrefslogtreecommitdiffstats
path: root/railties/exe
diff options
context:
space:
mode:
authorIslam Wazery <wazery@ubuntu.com>2015-04-11 18:44:27 +0200
committerIslam Wazery <wazery@ubuntu.com>2015-04-11 19:26:34 +0200
commit4521aadae00b3c39fb46124e7c76e6527d3f3273 (patch)
tree7e0968c9a3ec2132d5901dcb05cf8f6a2685acf7 /railties/exe
parent24970a69cbfa91e3e9322c88e620663a84035bda (diff)
downloadrails-4521aadae00b3c39fb46124e7c76e6527d3f3273.tar.gz
rails-4521aadae00b3c39fb46124e7c76e6527d3f3273.tar.bz2
rails-4521aadae00b3c39fb46124e7c76e6527d3f3273.zip
Rename railties/bin to railties/exe
That will match the new Bundler executables convention. Bundler Blog Post: http://bundler.io/blog/2015/03/20/moving-bins-to-exe.html Also updated the necessary tests.
Diffstat (limited to 'railties/exe')
-rwxr-xr-xrailties/exe/rails9
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/exe/rails b/railties/exe/rails
new file mode 100755
index 0000000000..82c17cabce
--- /dev/null
+++ b/railties/exe/rails
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+
+git_path = File.expand_path('../../../.git', __FILE__)
+
+if File.exist?(git_path)
+ railties_path = File.expand_path('../../lib', __FILE__)
+ $:.unshift(railties_path)
+end
+require "rails/cli"