aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-17 13:00:59 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-19 16:11:53 +0200
commit5ff80e743345e87209303a477a5caaca75c6cece (patch)
tree144f6a612d57162c9e548736804020a1fce091fc /railties/bin
parentb6f826376add9cbbdfe75c1eb85394a2e6574c4c (diff)
downloadrails-5ff80e743345e87209303a477a5caaca75c6cece.tar.gz
rails-5ff80e743345e87209303a477a5caaca75c6cece.tar.bz2
rails-5ff80e743345e87209303a477a5caaca75c6cece.zip
bin/rails uses the new generator.
Diffstat (limited to 'railties/bin')
-rwxr-xr-xrailties/bin/rails13
1 files changed, 2 insertions, 11 deletions
diff --git a/railties/bin/rails b/railties/bin/rails
index 5e4fb38dba..cd173e51b6 100755
--- a/railties/bin/rails
+++ b/railties/bin/rails
@@ -7,14 +7,5 @@ if %w(--version -v).include? ARGV.first
exit(0)
end
-freeze = ARGV.any? { |option| %w(--freeze -f).include?(option) }
-
-app_path = ARGV.first
-
-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
+require File.dirname(__FILE__) + '/../lib/generator/generators/app'
+Rails::Generators::App.start