Class: Rails::Server::Options

Inherits:
Object
  • Object
show all
Defined in:
railties/lib/rails/commands/server.rb

Instance Method Summary collapse

Instance Method Details

#parse!(args) ⇒ Object


9
10
11
12
13
14
15
16
17
# File 'railties/lib/rails/commands/server.rb', line 9

def parse!(args)
  args, options = args.dup, {}

  option_parser(options).parse! args

  options[:log_stdout] = options[:daemonize].blank? && (options[:environment] || Rails.env) == "development"
  options[:server]     = args.shift
  options
end