1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use Rails default banner.

This commit is contained in:
José Valim 2009-06-21 09:34:32 +02:00
parent 0744900861
commit 04eb5b6e34
2 changed files with 9 additions and 1 deletions

View file

@ -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.
#

View file

@ -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