diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-14 22:20:43 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-14 22:20:43 +0200 |
commit | a06c825b464758a0c22f8b089a596e46f1bba5cb (patch) | |
tree | 575916106127d59c3f166c6cebbccc9039a41bcc /railties/lib/generators/rails/app | |
parent | e96af1eaa22b649e5df816d7931bd3e912e7a6bc (diff) | |
download | rails-a06c825b464758a0c22f8b089a596e46f1bba5cb.tar.gz rails-a06c825b464758a0c22f8b089a596e46f1bba5cb.tar.bz2 rails-a06c825b464758a0c22f8b089a596e46f1bba5cb.zip |
Updated vendored Thor to 0.11.1 and update Rails::Generators.
Diffstat (limited to 'railties/lib/generators/rails/app')
-rw-r--r-- | railties/lib/generators/rails/app/app_generator.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/generators/rails/app/app_generator.rb b/railties/lib/generators/rails/app/app_generator.rb index 20a06ed16a..88a52c60b0 100644 --- a/railties/lib/generators/rails/app/app_generator.rb +++ b/railties/lib/generators/rails/app/app_generator.rb @@ -46,11 +46,11 @@ module Rails::Generators end def create_root - self.root = File.expand_path(app_path, root) + self.destination_root = File.expand_path(app_path, destination_root) empty_directory '.' app_name # Sets the app name - FileUtils.cd(root) + FileUtils.cd(destination_root) end def create_root_files @@ -162,7 +162,7 @@ module Rails::Generators def apply_rails_template apply options[:template] if options[:template] - rescue LoadError, Errno::ENOENT => e + rescue Thor::Error, LoadError, Errno::ENOENT => e raise Error, "The template [#{options[:template]}] could not be loaded. Error: #{e}" end @@ -180,7 +180,7 @@ module Rails::Generators end def app_name - @app_name ||= File.basename(root) + @app_name ||= File.basename(destination_root) end def app_secret |