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
piesync-puma-3.12.6.1 lib/puma/convenient.rb
piesync-puma-3.12.6 lib/puma/convenient.rb
puma-3.12.6-java lib/puma/convenient.rb
puma-3.12.6 lib/puma/convenient.rb
puma-3.12.5-java lib/puma/convenient.rb
puma-3.12.5 lib/puma/convenient.rb
puma-3.12.4-java lib/puma/convenient.rb
puma-3.12.4 lib/puma/convenient.rb
puma-3.12.2-java lib/puma/convenient.rb
puma-3.12.2 lib/puma/convenient.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/convenient.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/convenient.rb
puma-4.2.1-java lib/puma/convenient.rb
puma-4.2.1 lib/puma/convenient.rb
puma-4.2.0-java lib/puma/convenient.rb
puma-4.2.0 lib/puma/convenient.rb
puma-4.1.1-java lib/puma/convenient.rb
puma-4.1.1 lib/puma/convenient.rb
puma-4.1.0-java lib/puma/convenient.rb
puma-4.1.0 lib/puma/convenient.rb