diff options
Diffstat (limited to 'railties/lib/generator/generators/app/app_generator.rb')
-rw-r--r-- | railties/lib/generator/generators/app/app_generator.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/railties/lib/generator/generators/app/app_generator.rb b/railties/lib/generator/generators/app/app_generator.rb index 6f5cb5f2c6..3eb9b8c79a 100644 --- a/railties/lib/generator/generators/app/app_generator.rb +++ b/railties/lib/generator/generators/app/app_generator.rb @@ -3,10 +3,8 @@ require 'digest/md5' require 'active_support/secure_random' module Rails::Generators - class App < Base + class AppGenerator < Base DATABASES = %w( mysql oracle postgresql sqlite2 sqlite3 frontbase ibm_db ) - - namespace "rails:app" add_shebang_option! argument :app_path, :type => :string @@ -182,6 +180,10 @@ module Rails::Generators ActiveSupport::SecureRandom.hex(64) end + def self.banner + "#{$0} #{self.arguments.map(&:usage).join(' ')} [options]" + end + def mysql_socket @mysql_socket ||= [ "/tmp/mysql.sock", # default |