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:
parent
0744900861
commit
04eb5b6e34
2 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue