Skip to content
Browse files

Add script/rails

  • Loading branch information...
1 parent 58108d6 commit 441f46b0247e558f84da7bb4c833d26ffe2d1426 @tpope tpope committed Mar 1, 2010
Showing with 10 additions and 41 deletions.
  1. +0 −4 script/about
  2. +0 −6 script/console
  3. +0 −6 script/dbconsole
  4. +0 −3 script/destroy
  5. +0 −3 script/generate
  6. +0 −3 script/performance/benchmarker
  7. +0 −3 script/performance/profiler
  8. +0 −3 script/plugin
  9. +10 −0 script/rails
  10. +0 −4 script/runner
  11. +0 −6 script/server
View
4 script/about
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/environment', __FILE__)
-$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
-require 'rails/commands/about'
View
6 script/console
@@ -1,6 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'rails/commands/console'
-require File.expand_path('../../config/application', __FILE__)
-
-Rails::Console.start(TimeAndExpenses::Application)
View
6 script/dbconsole
@@ -1,6 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'rails/commands/dbconsole'
-require File.expand_path('../../config/application', __FILE__)
-
-Rails::DBConsole.start(TimeAndExpenses::Application)
View
3 script/destroy
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/environment', __FILE__)
-require 'rails/commands/destroy'
View
3 script/generate
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/environment', __FILE__)
-require 'rails/commands/generate'
View
3 script/performance/benchmarker
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../../config/environment', __FILE__)
-require 'rails/commands/performance/benchmarker'
View
3 script/performance/profiler
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../../config/environment', __FILE__)
-require 'rails/commands/performance/profiler'
View
3 script/plugin
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/application', __FILE__)
-require 'rails/commands/plugin'
View
10 script/rails
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+ENV_PATH = File.expand_path('../../config/environment', __FILE__)
+BOOT_PATH = File.expand_path('../../config/boot', __FILE__)
+APP_PATH = File.expand_path('../../config/application', __FILE__)
+ROOT_PATH = File.expand_path('../..', __FILE__)
+
+require BOOT_PATH
+require 'rails/commands'
View
4 script/runner
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'rails/commands/runner'
-require File.expand_path('../../config/environment', __FILE__)
View
6 script/server
@@ -1,6 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'rails/commands/server'
-
-Dir.chdir(File.expand_path('../..', __FILE__))
-Rails::Server.start

0 comments on commit 441f46b

Please sign in to comment.
Something went wrong with that request. Please try again.