Sha256: 2fd7d222bd90181589d9dc76f560992dca1574d6c7b0cd5a10a42d19d4180a1b

Contents?: true

Size: 420 Bytes

Versions: 26

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

require 'puma/launcher'
require 'puma/configuration'

module Puma
  def self.run(opts={})
    cfg = Puma::Configuration.new do |user_config|
      if port = opts[:port]
        user_config.port port
      end

      user_config.quiet

      yield c
    end

    cfg.clamp

    events = Puma::Events.null

    launcher = Puma::Launcher.new cfg, :events => events
    launcher.run
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
puma-4.0.1-java lib/puma/convenient.rb
puma-4.0.1 lib/puma/convenient.rb
puma-4.0.0-java lib/puma/convenient.rb
puma-4.0.0 lib/puma/convenient.rb
puma-3.12.1-java lib/puma/convenient.rb
puma-3.12.1 lib/puma/convenient.rb