edge badge

This class handles preparation of the arguments before the AppGenerator is called. The class provides version or help information if they were requested, and also constructs the railsrc file (used for extra configuration options).

This class should be called before the AppGenerator is required and started since it configures and mutates ARGV correctly.

Methods
N
P
Attributes
[R] argv
Class Public methods
new(argv = ARGV)
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 317
def initialize(argv = ARGV)
  @argv = argv
end
Instance Public methods
prepare!()
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 321
def prepare!
  handle_version_request!(argv.first)
  unless handle_invalid_command!(argv.first)
    argv.shift
    handle_rails_rc!
  end
end