diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-07-30 14:18:53 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-07-30 14:18:53 +0100 |
commit | 915cf5747a78f28f2b25c48574031db60c3a18ae (patch) | |
tree | 048746387ddaaed418670c86451856675b8d369f /railties/bin | |
parent | 23f5e7e966defaaa1511eca57bd8de47f95cb7d9 (diff) | |
parent | d83b1828577c268de56e1b3942e16002c9efdd57 (diff) | |
download | rails-915cf5747a78f28f2b25c48574031db60c3a18ae.tar.gz rails-915cf5747a78f28f2b25c48574031db60c3a18ae.tar.bz2 rails-915cf5747a78f28f2b25c48574031db60c3a18ae.zip |
Merge commit 'mainstream/master'
Conflicts:
railties/guides/source/active_support_overview.textile
Diffstat (limited to 'railties/bin')
-rwxr-xr-x | railties/bin/about | 4 | ||||
-rwxr-xr-x | railties/bin/console | 3 | ||||
-rwxr-xr-x | railties/bin/dbconsole | 3 | ||||
-rwxr-xr-x | railties/bin/destroy | 3 | ||||
-rwxr-xr-x | railties/bin/generate | 3 | ||||
-rwxr-xr-x | railties/bin/performance/benchmarker | 3 | ||||
-rwxr-xr-x | railties/bin/performance/profiler | 3 | ||||
-rwxr-xr-x | railties/bin/plugin | 3 | ||||
-rwxr-xr-x | railties/bin/rails | 13 | ||||
-rwxr-xr-x | railties/bin/runner | 3 | ||||
-rwxr-xr-x | railties/bin/server | 3 |
11 files changed, 4 insertions, 40 deletions
diff --git a/railties/bin/about b/railties/bin/about deleted file mode 100755 index 1eeb6eb915..0000000000 --- a/railties/bin/about +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" -require 'commands/about' diff --git a/railties/bin/console b/railties/bin/console deleted file mode 100755 index 235a1f2780..0000000000 --- a/railties/bin/console +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -require 'commands/console' diff --git a/railties/bin/dbconsole b/railties/bin/dbconsole deleted file mode 100755 index 83c8436a9d..0000000000 --- a/railties/bin/dbconsole +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -require 'commands/dbconsole' diff --git a/railties/bin/destroy b/railties/bin/destroy deleted file mode 100755 index 88d295f7aa..0000000000 --- a/railties/bin/destroy +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -require 'commands/destroy' diff --git a/railties/bin/generate b/railties/bin/generate deleted file mode 100755 index 62a8a4c0c5..0000000000 --- a/railties/bin/generate +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -require 'commands/generate' diff --git a/railties/bin/performance/benchmarker b/railties/bin/performance/benchmarker deleted file mode 100755 index 3bff809fb3..0000000000 --- a/railties/bin/performance/benchmarker +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../../config/boot', __FILE__) -require 'commands/performance/benchmarker' diff --git a/railties/bin/performance/profiler b/railties/bin/performance/profiler deleted file mode 100755 index 07640575cd..0000000000 --- a/railties/bin/performance/profiler +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../../config/boot', __FILE__) -require 'commands/performance/profiler' diff --git a/railties/bin/plugin b/railties/bin/plugin deleted file mode 100755 index b82201fa83..0000000000 --- a/railties/bin/plugin +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -require 'commands/plugin' diff --git a/railties/bin/rails b/railties/bin/rails index 6a0c675206..538d0cbc84 100755 --- a/railties/bin/rails +++ b/railties/bin/rails @@ -7,14 +7,9 @@ if %w(--version -v).include? ARGV.first exit(0) end -freeze = ARGV.any? { |option| %w(--freeze -f).include?(option) } +ARGV << "--help" if ARGV.empty? -app_path = ARGV.first +require File.dirname(__FILE__) + '/../lib/generators' +require 'generators/rails/app/app_generator' -require File.dirname(__FILE__) + '/../lib/rails_generator' - -require 'rails_generator/scripts/generate' -Rails::Generator::Base.use_application_sources! -Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app') - -Dir.chdir(app_path) { `rake rails:freeze:gems`; puts "froze" } if freeze
\ No newline at end of file +Rails::Generators::AppGenerator.start diff --git a/railties/bin/runner b/railties/bin/runner deleted file mode 100755 index be4c5d4572..0000000000 --- a/railties/bin/runner +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -require 'commands/runner' diff --git a/railties/bin/server b/railties/bin/server deleted file mode 100755 index b9fcb71793..0000000000 --- a/railties/bin/server +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.expand_path('../../config/boot', __FILE__) -require 'commands/server' |