diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-06-28 20:53:00 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-06-28 20:53:00 +0000 |
commit | 81a6a60dc6dff2ad8c2a45bf17fc40e760224e30 (patch) | |
tree | 691d04124ae4a872a992eff39b1c2d86891fbe84 /railties/lib/commands/servers/webrick.rb | |
parent | c02d1f7d9b73f708d8f656044b096454344ccb78 (diff) | |
download | rails-81a6a60dc6dff2ad8c2a45bf17fc40e760224e30.tar.gz rails-81a6a60dc6dff2ad8c2a45bf17fc40e760224e30.tar.bz2 rails-81a6a60dc6dff2ad8c2a45bf17fc40e760224e30.zip |
Remove opts.on { |options[:option_name] } style hash assignment. Closes #4440.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/servers/webrick.rb')
-rw-r--r-- | railties/lib/commands/servers/webrick.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/commands/servers/webrick.rb b/railties/lib/commands/servers/webrick.rb index db8e8b3d93..3fddcc5459 100644 --- a/railties/lib/commands/servers/webrick.rb +++ b/railties/lib/commands/servers/webrick.rb @@ -19,13 +19,13 @@ ARGV.options do |opts| opts.on("-p", "--port=port", Integer, "Runs Rails on the specified port.", - "Default: 3000") { |OPTIONS[:port]| } + "Default: 3000") { |v| OPTIONS[:port] = v } opts.on("-b", "--binding=ip", String, "Binds Rails to the specified ip.", - "Default: 0.0.0.0") { |OPTIONS[:ip]| } + "Default: 0.0.0.0") { |v| OPTIONS[:ip] = v } opts.on("-e", "--environment=name", String, "Specifies the environment to run this server under (test/development/production).", - "Default: development") { |OPTIONS[:environment]| } + "Default: development") { |v| OPTIONS[:environment] = v } opts.on("-m", "--mime-types=filename", String, "Specifies an Apache style mime.types configuration file to be used for mime types", "Default: none") { |mime_types_file| OPTIONS[:mime_types] = WEBrick::HTTPUtils::load_mime_types(mime_types_file) } @@ -36,7 +36,7 @@ ARGV.options do |opts| opts.on("-c", "--charset=charset", String, "Set default charset for output.", - "Default: UTF-8") { |OPTIONS[:charset]| } + "Default: UTF-8") { |v| OPTIONS[:charset] = v } opts.separator "" |