diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-21 09:34:32 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-23 16:53:47 +0200 |
commit | 04eb5b6e3428a2db773303b339bc776767635aee (patch) | |
tree | 4b8f9f9c5cd05f6b0d342e8063249257f2f5c478 /railties | |
parent | 0744900861892be85b4a110612a8e92aed94d858 (diff) | |
download | rails-04eb5b6e3428a2db773303b339bc776767635aee.tar.gz rails-04eb5b6e3428a2db773303b339bc776767635aee.tar.bz2 rails-04eb5b6e3428a2db773303b339bc776767635aee.zip |
Use Rails default banner.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/generator/base.rb | 8 | ||||
-rw-r--r-- | railties/lib/generator/generators/app.rb | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/railties/lib/generator/base.rb b/railties/lib/generator/base.rb index 5954dc1afd..2e0923a33d 100644 --- a/railties/lib/generator/base.rb +++ b/railties/lib/generator/base.rb @@ -26,6 +26,14 @@ module Rails end end + protected + + # Use Rails default banner. + # + def self.banner + "#{$0} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]" + end + # Small macro to ruby as an option to the generator with proper default # value plus an instance helper method. # diff --git a/railties/lib/generator/generators/app.rb b/railties/lib/generator/generators/app.rb index 8841485e3f..c785e72d8e 100644 --- a/railties/lib/generator/generators/app.rb +++ b/railties/lib/generator/generators/app.rb @@ -7,7 +7,7 @@ module Rails::Generators class App < Base DATABASES = %w( mysql oracle postgresql sqlite2 sqlite3 frontbase ibm_db ) - namespace :rails + namespace "rails:app" add_shebang_option! argument :app_path, :type => :string |