diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-17 13:00:59 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:53 +0200 |
commit | 5ff80e743345e87209303a477a5caaca75c6cece (patch) | |
tree | 144f6a612d57162c9e548736804020a1fce091fc /railties/bin | |
parent | b6f826376add9cbbdfe75c1eb85394a2e6574c4c (diff) | |
download | rails-5ff80e743345e87209303a477a5caaca75c6cece.tar.gz rails-5ff80e743345e87209303a477a5caaca75c6cece.tar.bz2 rails-5ff80e743345e87209303a477a5caaca75c6cece.zip |
bin/rails uses the new generator.
Diffstat (limited to 'railties/bin')
-rwxr-xr-x | railties/bin/rails | 13 |
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 |