Skip to content

Commit

Permalink
Reinstate existing code
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Oct 25, 2019
1 parent 052ca2f commit cf7478a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/puma/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ def initialize(argv, events=Events.stdio)
begin
@parser.parse! @argv

if (file = @argv.shift)
@conf.configure do |_user_config, file_config|
if file = @argv.shift
@conf.configure do |user_config, file_config|
file_config.rackup file
end
end
rescue UnsupportedOption
exit 1
end

@conf.configure do |user_config, _file_config|
@conf.configure do |user_config, file_config|
if @stdout || @stderr
user_config.stdout_redirect @stdout, @stderr, @append
end
Expand All @@ -68,7 +68,7 @@ def initialize(argv, events=Events.stdio)
end
end

@launcher = Puma::Launcher.new(@conf, events: @events, argv: argv)
@launcher = Puma::Launcher.new(@conf, :events => @events, :argv => argv)
end

attr_reader :launcher
Expand Down Expand Up @@ -98,7 +98,7 @@ def configure_control_url(command_line_arg)
#

def setup_options
@conf = Configuration.new do |user_config, file_config, _default_dsl|
@conf = Configuration.new do |user_config, file_config|
@parser = OptionParser.new do |o|
o.on "-b", "--bind URI", "URI to bind to (tcp://, unix://, ssl://)" do |arg|
user_config.bind arg
Expand Down

0 comments on commit cf7478a

Please sign in to comment.